tfw you know that Golang doesn't even have a ternary operator
tfw you realize a thread died for this
>>61457149
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".
>>61458116
because no one was thinking in terms of OOP in 1969 and programs weren't that super complicated at the time
>>61457149
>Golang
Found your problem
Don't you guys think that ternary operators just fuck up readibility ?
>>61458440
If they're chained together they fuck up readability. That doesn't mean the language shouldn't have them.
>>61457149
if OP==fag { OP = fag } else { OP = still fag }
>>61458547
>>61458116
>>61458242
this, you can't really excuse go, at this point ternary operators are standard.
>>61457149
? what he mean by that
>>61458547(anon.canCode())? "No" : "Absolutely not";
>>61458025
>Muh threads!
Go blacked to plebbit if you want archival.
>>61458726
>anon.canCode()
can I see the details of that function pls?
>>61458860
(trace (canCode))
>>61458890
>trace
2l33t4m3
>checking only the return value of a function without writing the customaryif err != nil {...}
>>61458920
>not writing a helper functioncheck(err)
>>61457149
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
>>61458547
>>61458726
>>61458860public bool Anon::canCode(void){
// Use is retarded when anon replaces ternary for a fucking if else clause
return (lovesDicks || isRetarded);
>>61460038
>Not replacing single if-else with a switch