4 ms·
"Go has a way of programming. Go is totally optimized for that way of programming, in fact. Programming any way other than Go’s way, with Go, will be that recip
by jfaucett 14y ago
"Go has a way of programming. Go is totally optimized for that way of programming, in fact. Programming any way other than Go’s way, with Go, will be that recipe for frustration I bounced my skull against."
I think this is something a lot of people think when they first come to Go. Especially if you come from a higher lang like ruby or js or something since on other places on the net its kind of being marketed as a nodejs alternative. However, in my experience the "frustration" hasn't been there at all. I came from c and I think you get basically just a vamped up "better" (I know bad word) c. I love having multiple return vals and error handling in my returns and message passing and threading to any types is so easy in Go it just makes life nicer.
These are all my biased opinions as an avid Go user of course, but honestly I find the language extremely expressive and powerfull, and not really that it forces you to do something the Go way, other than the sense that yes you need to know the syntax and not have type errors etc, but this is the case with every language.
- Jabbles 14y agoI quoted the same paragraph, and I'd be interested to know how much people think it applies to other languages. Obviously there are languages using whole other paradigms that you would struggle immensely in, try writing Prolog like Java! But I wonder if the "Go mindset" is really any stronger than the "Ruby/erlang/lisp mindset" - or whether it's just the proximity of Go's appearance to C,C++,Java that causes new Go programmers to try to port incompatible idioms.