Re: BreakIterator

From: Date: Fri, 01 Jun 2012 11:34:47 +0000
Subject: Re: BreakIterator
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-60709@lists.php.net to get a copy of this message
On Fri, 1 Jun 2012 12:58:37 +0200, Pierre Joye wrote:
On Fri, Jun 1, 2012 at 10:02 AM, Benjamin Eberlei <kontakt@beberlei.de> wrote:
How about IntlBreakIterator? I agree with David that the naming is very weird, it doesn't hint at something from Intl but another crazy spl iterator :-)
Asides from date related classes -- which could be confused with stuff from ext/date or even ext/calendar --, no other classes have Intl in their name. Does SpoofChecker hint at something from intl? ResourceBundle? ICU is a rather large library, and while internationalization is a common theme, the APIs have diverse functionality and therefore diverse names. Plus, SPL does not have a monopoly on the *Iterator names.
I agree too. BreakIterator is a very common name and I suspect possible naming conflicts may happen.
So would you have RuleBasedBreakIterator renamed IntlRuleBasedBreakIterator too?... I find it very hard to believe that "BreakIterator" is "a very common name", but I'm open to evidence that points otherwise. This argument could maybe be made for 'Transliterator', which was added in 5.4. -- Gustavo Lopes

« previous php.internals (#60709) next »