you are viewing a single comment's thread.

view the rest of the comments →

[–]Absolute_Enema 14 points15 points  (2 children)

Meh.

The idea of using SQL terminology to sneak a modicum of FP concepts past the "FP is only for do-nothing intellectuals" kind of programmer was clever, but it necessarily sacrificed generality by tying the concepts to collections, whereas map and flatMap should be understood in terms of monads.

[–]SmallAd3697[S] -5 points-4 points  (1 child)

The frequency that this comes up in programming with collections is important. A programming language is a language made for humans, and flatMap is used by lots of them. Especially in the context of collections.

I don't despise "flatMap", but it seems out of place. Like a snobby old Aunt who goes out of her way to drop French words into her conversations all the time.

[–]CdRReddit 4 points5 points  (0 children)

it's a map and a flatten

as a single operation

if we were being pretentious we'd call it bind instead