Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
evmar
· 15y ago · 0 comments
The last example also doesn't actually memoize if the result of the computation is false -- it will recompute on each call.
Comments
[–]
adammacleod
15y ago
It will store a false in the JavaScript version, I'm not familiar with Ruby but I believe you are correct in that case.