3 ms·
I've been learning go over the past 3 weeks. This made me kinda sad in a way. I have similar (and much less angry) complaints with Go as a beginner. My main gr
by kretaceous 4y ago
I've been learning go over the past 3 weeks. This made me kinda sad in a way. I have similar (and much less angry) complaints with Go as a beginner.
My main gripe is not having proper error handling (try-catch maybe) and lack of default parameters. (Anonymous function without parameters when passed as an argument to another function) would be a nice to have too.
There are some instances I feel that the makers of Go don't want to share the internals because that would be "unnecessary syntax".
Want default parameters?
Don't have those.
So how does make() work?
It's a language construct.
Obviously I'm not going to stop learning as I think it's the easiest language to make small/standalone binaries in and, I love the syntax, the native tooling, the performance, the easy concurrency, etc. It's a worthy tool.
But I really hope some of obvious language quirks get acknowledged and fixed by the Go community.
And I really hope I don't regret.
I haven't really learnt it in depth but it has been easier so far than whatever language I've tried learning it in.