News for hackers. Stuff that matters.
Re:Less is exponentially more (2012) by sanderjd on Tuesday May 12, 2020 @11:32AM (#23155051)
To the "everything in Go is for loops" point of the parent, I really think the value of higher-level abstractions of common loop patterns are often underrated for readability and correctness. The advantage is that it is a lot more obvious when code veers from the pattern, which alerts the reader to spend more time thinking through what it is actually doing. Put another way, it is easier to write a for loop that looks like a 1:1 map from one set of values to another but actually does something a bit different, than it is to write a map operation that does something besides mapping.

There are no comments on this comment yet.