The PHP Roundtable
The PHP Roundtable
PHP Roundtable, Eric Van Johnson
035: Immutable PHP
1 hour 26 minutes Posted Nov 24, 2015 at 2:00 pm.
0:00
1:26:32
Download MP3
Show notes

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.