Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86999 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48313 invoked from network); 2 Jul 2015 13:46:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Jul 2015 13:46:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=andreas@heigl.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=andreas@heigl.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain heigl.org from 195.191.240.18 cause and error) X-PHP-List-Original-Sender: andreas@heigl.org X-Host-Fingerprint: 195.191.240.18 hos109.unaxus.net Received: from [195.191.240.18] ([195.191.240.18:46350] helo=hos109.unaxus.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 20/48-20693-CC045955 for ; Thu, 02 Jul 2015 09:46:53 -0400 Received: from [212.185.30.151] (port=53125 helo=wdv-hg-0.c.07-zx4090-heigl.andreas.dhcp.hg.wdv.de) by hos109.unaxus.net with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZAepF-000ThG-QA for internals@lists.php.net; Thu, 02 Jul 2015 15:46:49 +0200 Message-ID: <559540C9.8030504@heigl.org> Date: Thu, 02 Jul 2015 15:46:49 +0200 MIME-Version: 1.0 To: internals@lists.php.net References: <1413875212.2624.3.camel@localhost.localdomain> <55953FE5.3070102@hoa-project.net> In-Reply-To: <55953FE5.3070102@hoa-project.net> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha1; boundary="------------ms080906030105090005050801" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hos109.unaxus.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - heigl.org X-Get-Message-Sender-Via: hos109.unaxus.net: authenticated_id: a.heigl+heigl.org/only user confirmed/virtual account not confirmed Subject: Re: [PHP-DEV] [RFC] UString From: andreas@heigl.org (Andreas Heigl) --------------ms080906030105090005050801 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi. Am 02.07.15 um 15:43 schrieb "Ivan Enderlin"@Hoa: > Hello :-), >=20 > Just a small detail. Please, choose another name. The `Hoa\String` > https://packagist.org/packages/hoa/string library has been renamed to > `Hoa\Ustring` because of PHP7. So, please, don't force us to rename the= > library again ;-). What's the issue with the name? As far as I see it, There's no problem at all, as there's UString and then there's Hoa\UString. Different namespace, no issue. Or am I missing something? Cheers Andreas >=20 > Moreover, this library provides an API that is useful for daily use and= > can be inspiring. Please, see > http://hoa-project.net/Literature/Hack/Ustring.html. >=20 > Regards. >=20 > On 01/07/15 01:30, Sara Golemon wrote: >> On Mon, Mar 2, 2015 at 12:48 AM, Nikita Popov >> wrote: >>> On Tue, Oct 21, 2014 at 9:06 AM, Joe Watkins >>> wrote: >>>> 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 ;) >>>> >> Curious what the current state of the UString RFC is. I've got a >> functionality request for HHVM to wrap icu::UnicodeString and was >> hoping to match PHP behavior if any plans had been made, and lo... >> here's a plan! >> >>> I'm not totally convinced by this proposal. We already have quite a >>> number >>> of extensions that deal with unicode text in one way or another (at >>> least >>> intl, mbstring and iconv). This adds yet another way of dealing with >>> this >>> issue - a way that will have to be combined with at least two other >>> extensions (mbstring or iconv for input handling and conversion) and >>> intl >>> for any non-trivial operations. There's nothing wrong with adding >>> another >>> approach for unicode handling per se, but I'd like to have more >>> empahsis on >>> how this integrates with existing functionality and why it is >>> implemented >>> separately from it (especially intl), etc. >>> >> I think (hope) that Joe's intention was to make it as an extension for= >> proof of concept, but make it part of the intl extension when it comes= >> to full adoption by the runtime. If not, let's talk about making that= >> the intent, because intl is where this belongs. >> >> For my bikeshedding part, I'd recommend against the u() function >> helper as it pollutes the global function namespace and takes a very >> fundamental name. intl\u() might be worth considering, but we'll need= >> to have a discussion about namespacing for the intl extension as a >> whole (separate topic). >> >> I'd also recommend "IntlString" rather than "UString" as nearly all >> the Intl classes follow this convention. The one notable exception >> being UConverter (which yes, I added, and I regret the departure in >> naming). >> >> Otherwise, while there's room to quibble about specific API names and >> arguments, the general concept seems a no-brainer. >> >> -Sara >> >=20 >=20 --=20 ,,, (o o) +---------------------------------------------------------ooO-(_)-Ooo-+ | Andreas Heigl | | mailto:andreas@heigl.org N 50=C2=B022'59.5" E 08=C2=B0= 23'58" | | http://andreas.heigl.org http://hei.gl/wiFKy7 | +---------------------------------------------------------------------+ | http://hei.gl/root-ca | +---------------------------------------------------------------------+ --------------ms080906030105090005050801 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIFrDCC BagwggOQoAMCAQICAw9P6TANBgkqhkiG9w0BAQ0FADB5MRAwDgYDVQQKEwdSb290IENBMR4w HAYDVQQLExVodHRwOi8vd3d3LmNhY2VydC5vcmcxIjAgBgNVBAMTGUNBIENlcnQgU2lnbmlu ZyBBdXRob3JpdHkxITAfBgkqhkiG9w0BCQEWEnN1cHBvcnRAY2FjZXJ0Lm9yZzAeFw0xNDA3 MjMwOTMyNDlaFw0xNjA3MjIwOTMyNDlaMFwxFjAUBgNVBAMTDUFuZHJlYXMgSGVpZ2wxIDAe BgkqhkiG9w0BCQEWEWEuaGVpZ2xAaGVpZ2wub3JnMSAwHgYJKoZIhvcNAQkBFhFhbmRyZWFz QGhlaWdsLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKfpctxYU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