Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78175 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87830 invoked from network); 21 Oct 2014 07:41:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Oct 2014 07:41:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:64139] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/60-19409-D0E06445 for ; Tue, 21 Oct 2014 03:41:01 -0400 Received: by mail-wi0-f177.google.com with SMTP id fb4so967840wid.10 for ; Tue, 21 Oct 2014 00:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ivc1NdXeNhGDaWc1zT7NHzxDcPWcRxLIpjjR6FMI78A=; b=WCmw24nwf3nMAxpwsm00o7fjcIMQvKFc5oRQb5N5AO4/CO+r+1NNyRgAJx8u1WNCsJ +hoSv2EgWQONs1Z16mifSpxWStctcYlNPQ8mWLbQGO1ow/8htSfAw+lCiMxMGF1NknTs y/bHsFN0zm7azta3NO8k1YJPro8tstQkoVyO6NvoctjVDMLQokLAMXHiH6LXBgYesexa sVP0m3Ad7jM+lMExbiEruosY1HL6wFP2La1Ms7TbczOll8PaM7tXMOjN4PRYao8jPXkY Jy/2uMVD5Uc0WeMBncbSbZ+F8S2E4NIwSNJWjR4rQpA44mSO4n3hzGqe9GmrQD9iKH85 /neA== MIME-Version: 1.0 X-Received: by 10.194.60.230 with SMTP id k6mr1240488wjr.135.1413877257798; Tue, 21 Oct 2014 00:40:57 -0700 (PDT) Received: by 10.217.55.195 with HTTP; Tue, 21 Oct 2014 00:40:57 -0700 (PDT) In-Reply-To: <1413875212.2624.3.camel@localhost.localdomain> References: <1413875212.2624.3.camel@localhost.localdomain> Date: Tue, 21 Oct 2014 08:40:57 +0100 Message-ID: To: Joe Watkins Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] UString From: leight@gmail.com (Leigh) On 21 October 2014 08:06, Joe Watkins wrote: > Morning internalz, > > https://wiki.php.net/rfc/ustring > > This is the result of work done by a few of us, we won't be opening any > vote in a fortnight. We have a long time before 7, there is no rush > whatever. > > Now seems like a good time to start the conversation so we can hash out > the details, or get on with other things ;) > Breaks nothing, faster than mbstring, seems like win/win to me. > On the flip side, implementing UString as a scalar object would be inconsistent. At time of writing, array, int, float, bool, etc have no implementation available for this. I agree it shouldn't be a scalar object, but how about some operator overloading like the GMP object has, so that you don't have to cast to string for expected behaviour with type coercion etc. > Right now there are user-space libraries out there that cover a lot more functionality than UString. Do you need help implementing these? Do you think it would be beneficial to briefly list which areas need attention on the RFC, so they can be checked off over time? Overall +1 on the concept.