Tfw you know that Golang doesn't even have a ternary operator

tfw you know that Golang doesn't even have a ternary operator

tfw you realize a thread died for this

That's a dumb fucking reason to dislike Go. There are loads of shitty things about Go, but that's a stupid thing. This is like when 2nd year CS students say "C is bad, it doesn't even have class".

because no one was thinking in terms of OOP in 1969 and programs weren't that super complicated at the time

>Golang
Found your problem

Don't you guys think that ternary operators just fuck up readibility ?

If they're chained together they fuck up readability. That doesn't mean the language shouldn't have them.

if OP==fag { OP = fag } else { OP = still fag }

...

this, you can't really excuse go, at this point ternary operators are standard.

? what he mean by that

(user.canCode())? "No" : "Absolutely not";

>Muh threads!

Go blacked to plebbit if you want archival.

>user.canCode()
can I see the details of that function pls?

(trace (canCode))

>trace
2l33t4m3

>checking only the return value of a function without writing the customary if err != nil {...}

>not writing a helper function
check(err)

Now back to actual reasons for bashing golang, the lack of a decent type system and metaprogramming features.

Having none is better than the Python Version
X if y else Z

public bool user::canCode(void){
// Use is retarded when user replaces ternary for a fucking if else clause
return (lovesDicks || isRetarded);

>Not replacing single if-else with a switch