> > 4. Should we rename LocaleInfo.*collator*()/*numberFormat*()/* > dateTimeFormat*() into LocaleInfo.*createCollator*()...? It makes it clear > we are creating new object. > > > The methods on the LocaleInfo constructor or are they really > LocaleInfo.prototype methods. In other words are the results derived from a > specific LocaleInfo instance or is the result some sort of global value that > is independent of the instances. If the latter, why are they associated with > the LocaleInfo constructor? >
They are prototypes: LocaleInfo.prototype.collator() I propose LocaleInfo.prototype.createCollator() since they actually create a new LocaleInfo.Collator (or DateTimeFormat or NumberFormat) objects based on that locale info.
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

