Hacker News new | ask | show | jobs
by gizzlon 5317 days ago
Shouldn't that be solved with a closure in both languages?
1 comments

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.