Wow. I haven't followed Go for a while, thanks for that note.
Iterators are very nice addition, even with typical Go fashion of quite ugly syntax.
Iterators are very nice addition, even with typical Go fashion of quite ugly syntax.
I didn't study the reason why Go chose this way over others. I do know they've considered other ways of doing it and concluded this one is best, based on complex criteria.
People who make value judgements like this typically ignore those complex consideration, of which playing well with all the past Go design decisions is the most important.
Frankly, you didn't even bother to say which language does it better or provide a concrete example of the supposedly non-ugly alternative.