Bruh it sure rocks to use a language that sucks the joy out of programming...

>Bruh it sure rocks to use a language that sucks the joy out of programming, has a retarded package manager and needs 30 lines of code for a 2 line algorithm
Why are gotards like this?

Attached: golang.png (600x600, 63.25K)

Go would be a fine language if half the changes weren't made just to be unique. For example to declare a variable is
var OP string = "Not a faggot";
There was literally no way to change the standard way a variable is declared but they decided to do it anyway because they want to appeal to the tranny "all change is good!" crowd. Go changes many things like this for no reason and all it does is make things harder for no reason.

Go(yim), like any other """programming"" ""language""" with a package manager, is the reason for the ever growing blight that is modern software.

It's to appeal to webshits. Typescript does that too. All these nu age languages are dumbed down for webshits who can't into a real meaty prog language like C++, Java or C#.

>30 lines of code for a 2 line algorithm
Name one such case, tranny

max(a, b) that supports all integer types.

>that supports all integer types
This is a strawman. I have never needed anything that had to support all integer types and neither have you.

>max(a, b) that supports all integer types.

Attached: brainlet.jpg (150x150, 4.97K)

literally no one ever has used minterms in Go and its pointless. If you're doing something more than some faggy cookie clicker program, you would use a real programming language like C/C++ or Java anyways.

>n-no not that one! it's a strawman! nobody would ever mix int32 and int64 in a project or use libs that return anything other than what we put in the README :((
lmao

>has a retarded package manager
GO111MODULE=off
>needs 30 lines of code for a 2 line algorithm
snippets

lel Java/C#

okay wagie

The fuck are you talking about, you can just write op := "a faggot"

>Java
Good morning sir
>Strong typing bad
Kys tranny

>can't into a real meaty prog language like C++, Java or C#.
Java was fine (relatively speaking), but are you serious about C++ for web development? Some people actually want to get shit done.

what even is the "standard way to declare a variable"? wtf are you talking about

Still better than Rust

If you just want to declare it
var varname typename

>just want to declare it
There is no "just declare" in Go, vars are always initialized (zeroed) when they are created, so
// this
var s string
// is the same as this
s := ""

The only difference is that the shorthand syntax only works inside function bodies

in JS this is just varname, or just start using it whenever you want.

At the risk of sounding like a complete brainlet, isn't it sort of the same in C, pointers aside?

The walrus operator in a plain variable assignment like this is one of go's worst contributions

In C, the initial value is random, not zero

It is the definition operator in mathematics, if you come from a math bg you'd think it's genius, also Go was not even close to being the first to use it

I like it better when used in things like if statements but I feel like normal assignment could just be overloaded for type inference if possible instead of having to use a separate symbol.

>normal assignment could just be overloaded for type inference if possible
Then how would we make the distinction between declaration and reassignment?

with the var keyword