Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60705 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69777 invoked from network); 1 Jun 2012 07:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Jun 2012 07:57:14 -0000 Authentication-Results: pb1.pair.com header.from=glopes@nebm.ist.utl.pt; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=glopes@nebm.ist.utl.pt; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain nebm.ist.utl.pt from 193.136.128.21 cause and error) X-PHP-List-Original-Sender: glopes@nebm.ist.utl.pt X-Host-Fingerprint: 193.136.128.21 smtp1.ist.utl.pt Linux 2.6 Received: from [193.136.128.21] ([193.136.128.21:46904] helo=smtp1.ist.utl.pt) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/26-45898-9D578CF4 for ; Fri, 01 Jun 2012 03:57:13 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id 3A183700043B for ; Fri, 1 Jun 2012 08:57:09 +0100 (WEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at ist.utl.pt Received: from smtp1.ist.utl.pt ([127.0.0.1]) by localhost (smtp1.ist.utl.pt [127.0.0.1]) (amavisd-new, port 10025) with LMTP id RbkpZUxjG6df for ; Fri, 1 Jun 2012 08:57:08 +0100 (WEST) Received: from nebm.ist.utl.pt (unknown [IPv6:2001:690:2100:4::58:1]) by smtp1.ist.utl.pt (Postfix) with ESMTP id E875A700043C for ; Fri, 1 Jun 2012 08:57:08 +0100 (WEST) Received: from localhost ([127.0.0.1] helo=nebm.ist.utl.pt) by nebm.ist.utl.pt with esmtp (Exim 4.72) (envelope-from ) id 1SaMjM-0005fd-Kz for internals@lists.php.net; Fri, 01 Jun 2012 08:57:08 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 01 Jun 2012 08:57:08 +0100 To: Organization: =?UTF-8?Q?N=C3=BAcleo_de_Engenharia_Biom=C3=A9dica_do_Insti?= =?UTF-8?Q?tuto_Superior_T=C3=A9cnico?= In-Reply-To: <4FC80163.3030500@gmail.com> References: <4FC80163.3030500@gmail.com> Message-ID: <5a9e29cec281298b330aed14b41dddb9@nebm.ist.utl.pt> X-Sender: glopes@nebm.ist.utl.pt User-Agent: RoundCube Webmail/0.5.3 Subject: Re: [PHP-DEV] BreakIterator From: glopes@nebm.ist.utl.pt (Gustavo Lopes) On Fri, 01 Jun 2012 09:40:19 +1000, David Muir wrote: > Coming from a "pleb", my only concern is the name if the class is in > the > global scope. A "BreakIterator" to me sounds like something related > to > breaking out of a looping structure, and not something used for > iterating over various language structure boundaries. > If it's in a ICU namespace, then it's not a problem, as it's clearly > related to Unicode. > We currently don't use namespaces in any of the core extensions. All the other symbols in ext/intl are in the global namespace; to put BreakIterator in a new namespace would be inconsistent -- and to put the whole extension would be a huge BC break. As to the name chosen to the class, it just mirrors the name used in ICU. In some cases, we prefixed the class name with Intl, in order to minimize the likelihood of symbols collisions or distinguish it from other similar functionality in PHP (something namespaces would be more appropriate for), but otherwise we prefer to keep the symbols names used in ICU in order to make it easy for people who already know the native API. Additionally, I think your concerns are exaggerated. The symbol BreakIterator can only used in contexts where it's obvious it's a class name, as in BreakIterator::createWordInstance('en'). -- Gustavo Lopes