4 ms·
So, why haven't they yet as 25 years have passed? It is nor like they are hard or expensive to implement, more like nobody cares and the claim is overblown. Mo
by AstralStorm 9y ago
So, why haven't they yet as 25 years have passed?
It is nor like they are hard or expensive to implement, more like nobody cares and the claim is overblown. Most mistakes in software are in boundary conditions nowadays and not invalid type handling.
Enforcing immutability is great until you get to deal with big number of additional values of immutable types because you cannot modify them. Easy to reason about, bad for performance.
- kbr 9y agoLinear types are different from immutable types. You can change the value of a linear type as long as you used the previous value somewhere else (for example i = i + 1). Languages like Rust leverage affine types (another substructural type system similar to linear type systems) in order to guarantee memory safety.
- GolDDranks 9y agoThey haven't yet, but they will. Let's wait a few more years. I think Rust is – at the moment – the biggest language that will usher that change.