12 ms·
Why is Go syntax fugly though? I don't have anything against the language and it's actually on my study plan soon but jeez the syntax looks very unappealing to
by joelbluminator 5y ago
Why is Go syntax fugly though? I don't have anything against the language and it's actually on my study plan soon but jeez the syntax looks very unappealing to me.
- tored 5y agoHow so? Missing parenthesis for if-statements and such? Looks like a mix of Pascal and C, missing parenthesis but still have curly braces.
- joelbluminator 5y agoIt could be this blog post. No, I actually like no paranethesis for ifs (just like in Ruby). Maybe the rather alien := thing, I just need to get used to the language I guess, but I didn't get this nice feeling of elegance I got when I first looked at Ruby or Kotlin when looking at Go. I know it's completely subjective though.
- deleted 5y ago[deleted]
- stevefan1999 5y agothe designers of Go are all having Unix background (Rob Pike, Ken Thompson), and they need a language that is simple and stupid just like Unix, and so now you know how painful Go is, just like how painful Unix is when everything is text and files
- samhw 5y agoSomeone needs to write a proposal to make the program play the tune from Stayin' Alive whenever a function returns an error. That way the Go devs can still pretend it's the 70s, meanwhile the rest of us can sneak in some usable error handling underneath.
- etra0 5y agoI completely agree with you. I tried Go a few months ago and I was really surprised by its performance, build sizes and how easy is to write concurrent stuff, but the syntax really did throw me away. It's probably something a bit superfluous, but coming from Rust it's hard to enjoy Go's syntax.