Fork me on GitHub

👋 Is it just me or does the second exercise (Lucian's Luscious Lasagna) break the FP paradigm? I had to define a function that used global state to compute a value and it felt kinda wrong.

Phil Shapiro20:02:42

I am not a FP lawyer but as long as the global state is immutable, that seems OK to me. The problem is with mutability, not with scope. A function definition (like +) is another example of (conceptually) immutable global state.


Ah, thanks for the correction.