i18n API implementation issues
cira at google.com
Wed May 18 15:35:40 PDT 2011
> 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:
since they actually create a new LocaleInfo.Collator (or DateTimeFormat or
NumberFormat) objects based on that locale info.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss