3 ms·
Do you mean "encourages immutability as a default"?
by badpenny 8y ago
Do you mean "encourages immutability as a default"?
- p4bl0 8y agoYes, that's what he meant ;). In OCaml references are always explicit (different syntax) and mutable field in records must be declared explicitly as mutable. However, OCaml does not bother you too much (as compared to Haskell for instance) when using side effects like printing.