Originally aired on
November 24th, 2015
Immutability plays a huge role in functional programming and many languages support immutability directly; like the
readonly keyword in C#. It is possible to create immutable objects in PHP, but the language lacks inherent immutable features for scalar variables and class properties. We discuss how to bring functional programming concepts to PHP and brainstorm some features that could possibly be added to future versions of PHP to offer better immutability support.
withstatement, not providing objects that only have getter methods
Thank you, Fabien Potencier for all your contributions to the PHP community. A $50 Amazon gift card from Laracasts is on its way to you.
Thank you Chris Shaw for authoring the show notes for this episode!
If you'd like to contribute show notes and totally get credit for it, check out the show-notes repo!