Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Four MLs (and a Python). Parent comment
2) The compiler does not know if there are collateral effects or not.
3) Ocaml is strict eval - no memoisation
Therefore this would be an unsafe optimisation if the compiler tried to perform it, which could lead to unintended behavioural changes.
The only way to fix this properly would be to add an effects system in some sense, at least a way to mark pure/impure functions.
There are no comments on this comment yet.
2) The compiler does not know if there are collateral effects or not.
3) Ocaml is strict eval - no memoisation
Therefore this would be an unsafe optimisation if the compiler tried to perform it, which could lead to unintended behavioural changes.
The only way to fix this properly would be to add an effects system in some sense, at least a way to mark pure/impure functions.