On Mon, Jun 25, 2012 at 6:36 PM, Norbert Lindenberg < [email protected]> 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 > > <[email protected]> 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 > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

