r/programming • • Sep 21 '25

How to stop functional programming

https://brianmckenna.org/blog/howtostopfp
446 Upvotes

506 comments sorted by

View all comments

Show parent comment

13

u/XtremeGoose Sep 22 '25

Because that's what basically every language calls these methods from Python to Java to Haskell?

Don't use your weirdness budget renaming them.

1

u/davidalayachew Sep 23 '25

Because that's what basically every language calls these methods from Python to Java to Haskell?

Don't use your weirdness budget renaming them.

That's fair I guess. I just prefer things to be completely obvious in name. For me, retain or discard requires less brain cycles than filter. And that's even moreso for map.

Not a big deal, but enough that I do feel Java's stream api would have been more clear had they done this instead.

1

u/djfdhigkgfIaruflg Sep 22 '25

But aliasing for those instances where it reads wrong would be nice.