Re: [RFC] UString

From: Date: Tue, 21 Oct 2014 07:40:57 +0000
Subject: Re: [RFC] UString
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-78175@lists.php.net to get a copy of this message
On 21 October 2014 08:06, Joe Watkins <pthreads@pthreads.org> 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.

« previous php.internals (#78175) next »