Why is memoization not a language feature?
What YOU want from memoization may not be the same as what the compiler memoization option would provide. You may know that it is only profitable to memoize the last 10 or so distinct values computed, because you know how the function will be used. You may know that it only makes sense to memoize … Read more