Fork me on GitHub
#exercism
<
2022-02-15
>
Eric23:02:25

👋 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.

1
Eric20:03:19

Ah, thanks for the correction.