i18n API - resolvedOptions

2012-08-31 Thread Marcos Caceres
Hi, This is a bit of bike shedding Currently, the spec defines resolvedOptions - which is using a noun for a function name. Generally speaking, nouns should not be used as function names, only for attributes/getters. I would urge the function be renamed to resolveOptions(). Dropping the

Re: i18n API - resolvedOptions

2012-08-31 Thread Norbert Lindenberg
Actually, all options have to be resolved in the constructors, because the functions returned by the compare and format getters also depend on the results of the resolution process. resolvedOptions() just packages up the results in a new object and returns that. A correct description in verb

RE: i18n API - resolvedOptions

2012-08-31 Thread Domenic Denicola
For comparison, quite a lot of ECMAScript function names are nouns, e.g. Date.now, String.prototype.{substring, indexOf}, etc. From: Norbert Lindenberg Sent: ‎August‎ ‎31‎, ‎2012 ‎12‎:‎16 To: Marcos Caceres CC: es-discuss Subject: Re: i18n API - resolvedOptions Actually, all options have