Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78200 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37603 invoked from network); 21 Oct 2014 13:38:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 13:38:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:58356] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/A6-02077-0E166445 for ; Tue, 21 Oct 2014 09:38:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id E42A02400EB; Tue, 21 Oct 2014 09:38:37 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id tTTFUwIsM74W; Tue, 21 Oct 2014 09:38:37 -0400 (EDT) Received: from oa-res-26-28.wireless.abdn.ac.uk (oa-res-26-28.wireless.abdn.ac.uk [137.50.26.28]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id CE12D24005D; Tue, 21 Oct 2014 09:38:36 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: <45C5E14F-1623-4596-846E-B3933C68F993@cschneid.com> Date: Tue, 21 Oct 2014 14:38:34 +0100 Cc: Joe Watkins , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: References: <1413875212.2624.3.camel@localhost.localdomain> <45C5E14F-1623-4596-846E-B3933C68F993@cschneid.com> To: Christian Schneider X-Mailer: Apple Mail (2.1990.1) Subject: Re: [PHP-DEV] [RFC] UString From: ajf@ajf.me (Andrea Faulds) > On 21 Oct 2014, at 13:35, Christian Schneider = wrote: >=20 > I have one concern I want to bring up: The RFC proposes a helper = function u() to generate UStrings. >=20 > As this is a very handy function name for all sort of utility = functions (as a matter of face we use it to create and sanitize URL = strings to be embedded into HTML) I would assume that more than one = project has a name clash there. >=20 > Maybe something like _u() could be used instead? Or do you have better = alternatives for this? >=20 > PS: UString is also in the global name space but should be less of a = problem I'd imagine. I think we should reserve some way to do Unicode strings. I=E2=80=99d = want u=E2=80=9Dfoo=E2=80=9D, but we=E2=80=99re not adding literals, so = u(=E2=80=9Cfoo=E2=80=9D) it is. Also, bear in mind that namespaces mean you can still have your own u() = if it=E2=80=99s in your namespace (\u). -- Andrea Faulds http://ajf.me/