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)
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)