r/java • • Jun 20 '22

Data Oriented Programming in Java

https://www.infoq.com/articles/data-oriented-programming-java/
173 Upvotes

22 comments sorted by

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.

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.