2 ms·
Well, if you avoid side effects assiduously enough, other languages can certainly have that sort of purity. However, you have to remember, avoiding side effect
by jaggederest 19y ago
Well, if you avoid side effects assiduously enough, other languages can certainly have that sort of purity.
However, you have to remember, avoiding side effects is what enables lazy evaluation, which is a huge gain in terms of performance. If you're not restricting side effects, you can't default to lazy evaluation.
- ced 19y agoTrue... And not having lazy evaluation encourages one to write Matrix.CalculateDeterminant() rather than Matrix.determinant, as it should be. But I don't think that has to do with reuse.
- jaggederest 19y agoRight, I'm saying, code reuse via no side effects is a nice part of the package deal