4 ms·
Mutations inplace are often done /necessary to make things performant with the JVM, viz clojure transients. For those playing along at home, the tapir book ("P
by gtani 16y ago
Mutations inplace are often done /necessary to make things performant with the JVM, viz clojure transients. For those playing along at home, the tapir book ("Purity Inside vs. Outside) and staircase book ("What makes an object stateful? p 357) are good little summaries.
http://programming-scala.labs.oreilly.com/ch08.html#PurityInsideVsOutside http://programming-scala.labs.oreilly.com/ch08.html#PurityIn...
- samstokes 16y agoI'm not claiming that all data should be immutable, or even that all data in Scala should be immutable; just that when you are using immutable data, the compiler should help you do that.