Hacker News new | ask | show | jobs
by metaltyphoon 1427 days ago
I'm mainly do C#, TypeScript, C++ (occasionally) and for some reason I really like go. There are really only 4 things I wish was different and perhaps it would become my goto language.

1) Simplify error handling. It's annoying having to create your own stack frame by composing strings.

2) Let me use my variable names. I find it so annoying that I have to come up with names just because the variable is being shadowed. Either change the package scope to use :: or make types be PascalCase with an `pub` keyword for exports.

3) Add a shorthand for lambda instead of having to type `func()`.

4) Allow a file scoped, not package, variable.