|
|
|
|
|
by geenat
1356 days ago
|
|
Love go as a platform.. self contained binaries have been a miracle for ops..but have a few big hangups about using the language full time because of the sucky ergonomics. * No optional/named parameters. Writing a whole function per parameter for function chaining is excessive. This would not be difficult to add to the compiler (i've done it and have seriously considered using the fork) but it seems like the team is just stubborn about adding stuff like this. * No default struct values. 0 isn't good enough in real world scenarios.. have fun writing BlahInit(...) for everything. * Would be nice to get the question mark syntax for error handling. Error handling shorthand for if err != nil would also be very welcome. |
|
I love Go too but this does drive me nuts, especially when parsing JSON and wanting to set sane defaults for missing values. Like, for example, booleans that should default to "true".