Re:Basic Patterns for Everyday Programming
by gizzlon on Wednesday November 23, 2011 @03:15AM
(#3269255)
Shouldn't that be solved with a closure in both languages?
[ Parent
| on HN ]
Re:Basic Patterns for Everyday Programming
by qntm on Wednesday November 23, 2011 @06:33AM
(#3269685)
I'm not sure there's anything there to be solved. If a "function" can return two different answers despite being provided with the exact same input parameters, you simply should not be attempting to memoize it.