Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
evmar
on Nov 23, 2011
|
parent
|
context
|
favorite
| on:
Basic Patterns for Everyday Programming
The last example also doesn't actually memoize if the result of the computation is false -- it will recompute on each call.
adammacleod
on Nov 23, 2011
[–]
It will store a false in the JavaScript version, I'm not familiar with Ruby but I believe you are correct in that case.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: