On Wed, Sep 16, 2009 at 3:36 PM, Jeremy Orlow <span dir="ltr"><<a href="mailto:jorlow@chromium.org">jorlow@chromium.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">Code wise, what Robert suggested is MUCH simpler. Almost for free in WebKit. Creating an asynchronous access method and exposing this in the page is much more complex. It also defeats the main purpose of LocalStorage (which is to be a simple, light weight way to store data).</div>
</div></div></blockquote><div><br></div><div>I do not buy that "creating an asynchronous access method and exposing this in the page" ... "defeats the main purpose of LocalStorage (which is to be a simple, light weight way to store data)"</div>
<div><br></div><div>Having one async callback doesn't make the API hard to use. Callbacks are easy to work with in JS. Adding one is not the end of the world by a long shot.</div><div><br></div><div>That said, I suppose it is probably wise to chase down option 3), if people are motivated, so that we don't end up with *three* name/value storage APIs.</div>
<div><br></div><div>- a</div></div>