3 ms·
You're right that memoization is a subset of caching but it still warrants special attention because every pure function gets to have a .Memoize() "method" for
by noblethrasher 15y ago
You're right that memoization is a subset of caching but it still warrants special attention because every pure function gets to have a .Memoize() "method" for free. This isn't true for caching in general.
- vannevar 15y agoAnd a red car is a subset of all cars, but we don't make up a special term for it. Many caching techniques have implementation details that distinguish them from one another, but we nonetheless refer to them by the same term. Caching from a database is different from caching in a CPU, but the basic mechanism and purpose is the same so we use the same term for clarity. I've never seen an article on memoization that couldn't be made more clear by substituting 'caching' wherever it used 'memoization'.