Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Philosophy and "for" loops — more from Go and Rust.
When you only provide one variable for assignment, you are actually assigning the key (or incremental value), not the value, the syntax is:
for key, value: := range someThing {
for something := range someThing {
for _, value := range someThing {
There are no comments on this comment yet.
When you only provide one variable for assignment, you are actually assigning the key (or incremental value), not the value, the syntax is:
When you do: something won't have the value. If you just want the value you need to use: