Re:Russ Cox is stepping down as the Go tech lead
by mseepgood on Friday August 02, 2024 @06:46AM
(#41137680)
They don't have any syntax that differs from the previous Go versions.
Re:Russ Cox is stepping down as the Go tech lead
by kjksf on Friday August 02, 2024 @10:10AM
(#41138925)
Just last week I've implemented an iterator for my C++ type and lol to your comment. It was fucking nightmare compared to how you (will) implement an iterator in Go.
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.
Iterators are very nice addition, even with typical Go fashion of quite ugly syntax.