Re: BreakIterator

From: Date: Fri, 01 Jun 2012 15:02:54 +0000
Subject: Re: BreakIterator
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-60715@lists.php.net to get a copy of this message
On Fri, 01 Jun 2012 15:35:13 +0200, Maciek Sokolewicz wrote:
In my personal opinion, all Intl classes should be prefixed with Intl. It's not so much that BreakIterator is a very common name, but rather a very ambiguous name that may point to many different things. Just by the fact that multiple people have already posted here that at first they thought BreakIterator had something to do with the break statement gives you a rather solid hint that the function of this class is not immediately clear. Prefixing it with Intl immediately makes it clear that it belongs to the Intl superfamily, and limits the potential misunderstandings a lot. I actually still don't understand why not all Intl classes are prefixed? Isn't that the usual procedure? eg. for MySQLi, and pretty much all other extensions?
We've had the convention of prefixing function names with some extension prefix, but this convention has not been as marked for class names -- perhaps because there were so not many of them and so there were less collision/confusion problems. In any case, I'll rename the classes before merging. -- Gustavo Lopes

« previous php.internals (#60715) next »