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

One unfortunate thing about localStorage is that if you start using it, and then decide to move instead to IndexDB (or WebSQL, or the Filesystem API), you need to jump the chasm from synchronous to asynchronous.

Which in Javascript always means a hefty rewrite, since there's no way to abstract out async vs sync.

It makes me long for call-with-current-continuation.



It's not Javascript proper, but take a look at tame.js. Would make switching between sync and async very easy. Also, IcedCoffeeScript for the CS-ers.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: