News for hackers. Stuff that matters.
Re:Go is not an easy language (2021) by __mattya on Sunday January 14, 2024 @09:20AM (#38990625)
There’s a talk by Rob Pike where he mentions that it would have been difficult for code using map, filter, etc. to be as fast as the equivalent code using a for loop without a sufficiently smart compiler.

So I think the motivation was more implementation simplicity . But if they had tried to add zero cost iterators it probably would have leaked complexity into the language too.

There are no comments on this comment yet.