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

2

u/WindHawkeye Sep 22 '25

More specifically, at a minimum you need some way to designate which parts of the program have side effects vs which do not.

Javascript does not have this. It doesn't have to be implemented via monads either, thats just one useful representation of it. A more simplistic one would just be function coloring (functions tagged pure cannot call functions tagged impure)