W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [chromium-html5] LocalStorage inside Worker

From: Glenn Maynard <glenn@zewt.org>
Date: Tue, 11 Jan 2011 21:17:43 -0500
Message-ID: <AANLkTing3C+7wYiGq6x70uFg892W7tJefbxyb-tuFy_t@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Keean Schupke <keean@fry-it.com>, Jeremy Orlow <jorlow@chromium.org>, robert@ocallahan.org, Charles Pritchard <chuck@jumis.com>, public-webapps WG <public-webapps@w3.org>
On Tue, Jan 11, 2011 at 9:02 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> Python has its "with" keyword, used like "with file = open('foo'):
> doStuffToTheFile(file)", which similarly creates a named resource and
("with open('foo') as file:")
> takes a chunk of code within which the resource is available.  I know
> that other languages have similar, but off the top of my head I'm
> having trouble thinking of them.

For what it's worth, my first reaction to "withNamedStorage" was that
it felt like the vocabulary of another language transplanted into
Javascript, and that it felt out of place.

That may be due to there being no comparable APIs like this in
Javascript yet (that I can think of) rather than the vocabulary
describing it, though.

-- 
Glenn Maynard
Received on Wednesday, 12 January 2011 02:18:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:15 UTC