Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84070 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55876 invoked from network); 28 Feb 2015 06:48:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Feb 2015 06:48:15 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 209.85.220.46 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:35047] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F4/24-32582-DA461F45 for ; Sat, 28 Feb 2015 01:48:14 -0500 Received: by padfa1 with SMTP id fa1so28418794pad.2 for ; Fri, 27 Feb 2015 22:48:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=cLS3H3Lu+3tNrpu3jsWLyklZ8ETsLKGj0iuXn6G5GxI=; b=dYXD6uQNbzzjlfjhvu/6VoGO400HYKgMVVpCkm09+yvhxbf9hqjblnAJTO8erRIULf lz+pip+wxAOGgWCimENRq9mAD1NSe/VUUdlLpjmdGKWVc1P7afTMLnmcWNxMfnB/RSEq AeoE2BvheWf1uzSk2YRnx3iUkW865p4vFH40pQbHVKoXkMUo/cqt40kxu2nL0eQAm3kr F6+nWSdJOHpZt5wJ2el45Z8nDT8u+mijF1CkweVEn+c0EH+/bEmNmCOW/b1uMRUiVOso 90DDURE9tWDqNsUx2X/UMlc7PG8a8nuguO/pbNBXAIFwNl98og+VxQLW01x7R2tPemhO cahQ== X-Gm-Message-State: ALoCoQkrBPw7HFPopc707t92u1NQ12/ei3KSVMIg+lOYfy8TXKeuJPEMTlKTGXIX7xNs9QUQPW6U MIME-Version: 1.0 X-Received: by 10.70.0.176 with SMTP id 16mr30472894pdf.78.1425106090580; Fri, 27 Feb 2015 22:48:10 -0800 (PST) Received: by 10.70.35.129 with HTTP; Fri, 27 Feb 2015 22:48:10 -0800 (PST) X-Originating-IP: [86.145.146.49] In-Reply-To: References: <1413875212.2624.3.camel@localhost.localdomain> <54469840.3070708@sugarcrm.com> <1414051917.2624.35.camel@localhost.localdomain> <1414060726.2624.60.camel@localhost.localdomain> <1414072403.3228.3.camel@kuechenschabe> <87D717D5-273B-4A32-A3E5-83EBDFD314CB@ajf.me> <1414077690.3228.12.camel@kuechenschabe> <54495CF6.30608@sugarcrm.com> <1414130585.2624.64.camel@localhost.localdomain> Date: Sat, 28 Feb 2015 06:48:10 +0000 Message-ID: To: Chris Wright Cc: Stas Malyshev , =?UTF-8?Q?Johannes_Schl=C3=BCter?= , Andrea Faulds , Dmitry Stogov , Philip Hofstetter , PHP Internals Content-Type: multipart/alternative; boundary=047d7b6787104bf9c60510205e1c Subject: Re: [PHP-DEV] [RFC] UString From: pthreads@pthreads.org (Joe Watkins) --047d7b6787104bf9c60510205e1c Content-Type: text/plain; charset=UTF-8 Morning internals, This is just a quick note to announce my intention to ready this RFC for voting next week. I know I'm a little late maybe, I was real sick most of last week, so couldn't do anything useful. A couple of us intend to fix outstanding issues on github and those raised here, tidy the RFC and open the vote for 7. I would ask anyone interested to scan through this thread and announce concerns that are not mentioned asap. Cheers Joe On Fri, Oct 24, 2014 at 3:01 PM, Chris Wright wrote: > On 24 October 2014 07:03, Joe Watkins wrote: > >> On Thu, 2014-10-23 at 12:54 -0700, Stas Malyshev wrote: >> > Hi! >> > >> > > P.S. u() is a bad name, will break lots of code, i.e. >> > >> > Maybe __u()? It's a bit ugly but you're not allowed to use __ so it's >> safe. >> > >> >> /me cringes ... >> >> I wonder how much of a problem it really is, usually when we say some >> function name is a problem is because of hundreds and hundreds of >> results on github. >> >> If it's a huge problem then we should rename it, if we have to dig >> around for a single project that's incompatible, or even a handful, then >> it's not really a problem. >> >> Cheers >> Joe > > > I can see this being something relatively common. While I personally would > never do it, there are a few reasons I can think of that people *might* do > it: > > - Wrapper for creating HTML output > - urlencode() shortcut > - (obviously) various unicode-related things > > Searching on codesearch [1] revealed (amongst a few other hits on the > first page) another interesting use of it in the hhvm test suite [2]. It's > difficult to search for this because all the available public search > engines that I know of do fuzzy matching. > > Sorry. This sucks, because every other option we have for this is sucks. > > On the bright side, anything chosen could always be aliased at the top of > the file: > > use function __u as u; > > This also sucks, but it sucks a little bit less because the collisions are > avoided - or at least, avoided in such a way that the onus is on the user - > and one can still have the sane name. > > First-class support at the syntax level (presumably $foo = u"unicode > string" since we already have $foo = b"binary string") would IMO be better > and (hopefully?) a long-term goal, but I am aware that it is - and probably > should be - outside the scope of the current proposal. > > [1] https://searchcode.com/?q=function+u+lang%3Aphp > [2] > https://github.com/facebook/hhvm/blob/master/hphp/test/slow/ext_icu/uspoof.php#L13 > --047d7b6787104bf9c60510205e1c--