3 ms·
Go looks interesting. Anyone else not a fan of the single character variable names? Also, Is there a better way, in terms of clarity, to do this: <- c Even w
by djb_hackernews 12y ago
Go looks interesting. Anyone else not a fan of the single character variable names?
Also, Is there a better way, in terms of clarity, to do this:
<- c
Even with the comment I would think the developer forgot to fill in the first half of that and assume it was a bug.
- mattetti 12y agoIn the first version of the post I had _ = <- c To show that we don't use the value read from the channel, but someone in my team pointed that, that this isn't very idiomatic and mainly a way to explain what the code does to someone who doesn't know Go.