The Eric Normand Podcast

Do you need immutability for functional programming?

Nov 21, 2019
The podcast dives into the role of immutability in functional programming. It discusses how immutable data structures can be beneficial, but not absolutely necessary. The speaker offers practical strategies for handling mutability effectively. Additionally, the conversation highlights the advantages of partial immutability and encourages listeners to engage with the content for a deeper understanding.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

Immutability Not Essential

  • Immutability, while helpful for functional programming, isn't strictly required.
  • Functional thinking can still apply to mutable situations.
INSIGHT

Mutable Reads as Actions

  • Reading from mutable data structures is an action, not a calculation.
  • Functional programming prefers calculations using immutable data.
ADVICE

Practical Immutability

  • Achieve practical immutability through discipline, not just language features.
  • If no code modifies data, it's effectively immutable, regardless of flags or setters.
Get the Snipd Podcast app to discover more snips from this episode
Get the app