James Iry wrote:
I'm going to assume you meant "enforce" rather than "support" because both languages support immutability and purity precisely to the extent that the programmers want to use them (although, of the two, Scala's standard library has far more support).
So does C. The problem is, without compiler support, you have a very difficult time telling by visual inspection if code is functional or not.
It's like turning off type checking in your C compiler. It still works, but it's really bug prone.
