4 ms·
> Scala which allows you to declare a read only val, you still see vars used. You see them very rarely, and usually with a narrow scope. I agree that you prob
by lmm 4y ago
> Scala which allows you to declare a read only val, you still see vars used.
You see them very rarely, and usually with a narrow scope.
I agree that you probably can't enforce an absolute rule of no mutable variables. But making it the exception rather than the rule (e.g. require it to be justified in code review) makes a huge difference.