3 ms·
I think that understanding the (moral) equivalence is useful in both directions. In particular, I think helping people understand the "function-as-container" an
by rebeccaskinner 2y ago
I think that understanding the (moral) equivalence is useful in both directions. In particular, I think helping people understand the "function-as-container" analogy is a useful way for people to understand pure functions- another thing that's conceptually simple but a lot of people struggle to really wrap their mind around it.
- magicalhippo 2y agoPersonally I would say it muddies the water for me, as "container" has strong connotations in other directions. But then I've never thought the concept of a pure function to be particularly difficult, despite growing up on procedural languages. It's other bits that I struggle with when it comes to functional programming.