News for hackers. Stuff that matters.
Re:The State of Go by sidlls on Sunday February 05, 2017 @12:21PM (#13573336)
Maps and folds are implicit loops. For some explicit is simpler.
Re:The State of Go by Scriptor on Sunday February 05, 2017 @01:42PM (#13573778)
Maps are explicit transformations of data. For some, making the business logic explicit is simpler.
Re:The State of Go by solidsnack9000 on Sunday February 05, 2017 @06:27PM (#13575368)
Loops are just implicit goto...

The argument for maps and folds is the same as the argument for structured programming in general: using common/reusable idioms brings clarity and familiarity.

Re:The State of Go by sidlls on Sunday February 05, 2017 @07:55PM (#13575733)
Terseness doesn't necessarily bring clarity.
Re:The State of Go by solidsnack9000 on Sunday February 05, 2017 @09:19PM (#13576071)
It's the recognizability, not the terseness, that brings clarity.

Although Python's approach is not terse -- `fstyle = [f(x) for x in arr]` -- it is eminently recognizable.

Your argument is not really about anything I specifically said; and without something to counterbalance, it argues against structured programming, too.

Re:The State of Go by sidlls on Monday February 06, 2017 @01:07AM (#13576926)
How does it argue against structured programming?

My argument is that "recognizability" is in the eye of the beholder. One programmer's "map is a powerful abstraction over transforms, for example loops" is another's "this is some cutesy code/math creole by a CS graduate who desperately wants to find nails to apply his functional programming and applied math hammer on".

That's a fairly harsh way of saying that at some point the abstraction isn't clarifying, whether it's recognizable or not.

Disclaimer: I'm a big fan of functional idioms (they're one of my favorite parts of Rust, for example). I'm not so much a big fan of absolutism or over-generalization.

Re:The State of Go by mattnewton on Sunday February 05, 2017 @01:37PM (#13573743)
No, maps are conversions between types containing other types. Maps are much more powerful than just doing something over an array in languages that support a functional style.
Re:The State of Go by sidlls on Sunday February 05, 2017 @01:50PM (#13573827)
The original comment was comparing maps and folds to loops, not the general application of maps.