Internationalization API: LocaleList removal
Rick Waldron
waldron.rick at gmail.com
Mon Jun 25 16:48:49 PDT 2012
On Mon, Jun 25, 2012 at 6:36 PM, Norbert Lindenberg <
ecmascript at norbertlindenberg.com> wrote:
> Good idea. A frozen array is more restrictive than a LocaleList (which is
> extensible), but that's probably OK in this context. Or we could thaw it a
> bit...
>
I was thinking the same thing, but was curious about potential performance
issues of large frozen arrays, but based on the small amount of research I
did today, there is a slight performance improvement when using a frozen
array.
Rick
>
> Norbert
>
>
> On Jun 25, 2012, at 10:09 , Andreas Rossberg wrote:
>
> > On 25 June 2012 19:00, Norbert Lindenberg
> > <ecmascript at norbertlindenberg.com> wrote:
> >> One side effect of removing LocaleList from the API is that the object
> returned from the supportedLocalesOf methods is now a simple Array, and
> therefore is modifiable. This probably prevents us from ever switching the
> return value of these methods back to a LocaleList, whose LocaleList
> properties (length and indexed elements 0..length-1) are immutable.
> >
> > Well, I don't see a reason why you couldn't return a frozen array then.
> >
> > /Andreas
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120625/e531c2ab/attachment.html>
More information about the es-discuss
mailing list