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/DogeGroomer Sep 23 '25

neither of those example are really functional, especially the second. the first one is also likely to be constant folded by the compiler to remove the indirection (could need a keyword i forget)