4 ms·
I've been a professional Go developer since 2015 and I prefer to never use the shorthand. Saving a single line is never worth how much harder it is to read.
by spyspy 6y ago
I've been a professional Go developer since 2015 and I prefer to never use the shorthand. Saving a single line is never worth how much harder it is to read.
- DangitBobby 6y agoI find the shorthand clearer. Having to ignore less boilerplate code often makes it easier to process the highlights of what is happening. (I know people are awfully smug about paying more attention to the "unhappy path," but when it comes to reading and understanding the intent behind code, understanding the happy path comes first).