Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The last example also doesn't actually memoize if the result of the computation is false -- it will recompute on each call.


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: