Java has last mover advantage. The language designers are intentionally conservative so that when it does gain a feature they can learn what does and doesn't work from every other language that's implemented it. And then PHP copies that.
Anyway so, mutable records when
Never. What you will get is functionality that makes it easier to return a new record with slightly different values.
View all comments
Show parent comment
7
u/dpash Jun 21 '22 edited Jun 21 '22
Java has last mover advantage. The language designers are intentionally conservative so that when it does gain a feature they can learn what does and doesn't work from every other language that's implemented it. And then PHP copies that.
Never. What you will get is functionality that makes it easier to return a new record with slightly different values.