News for hackers. Stuff that matters.
Re:Experiences Using Go as a Teaching Language with Young Pr... by pcwalton on Thursday August 13, 2015 @04:05PM (#10056857)
Right, you do use the C-style for loop for numeric iteration.

The reason why a more succinct form for numeric iteration isn't there is that Go has no generics, therefore no generic interfaces, therefore no Iterator interface, therefore no iterators. So Go had no choice but to build all syntaxes that look like iterators directly into the language.

There are no comments on this comment yet.