Skip to main content

All Questions

Tagged with
8 votes
4 answers
2k views

Is there a performance benefit to using immutable objects in a scripting language?

As I understand it, writing your objects in an immutable style can help the performance of your program for compiled languages, as the compiler tends to rewrite your code in single static assignment ...
Kevin Burke's user avatar