Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31126 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57957 invoked by uid 1010); 20 Jul 2007 02:18:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57938 invoked from network); 20 Jul 2007 02:18:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jul 2007 02:18:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.82.239 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 66.249.82.239 wx-out-0506.google.com Received: from [66.249.82.239] ([66.249.82.239:34918] helo=wx-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/F7-20012-98B10A64 for ; Thu, 19 Jul 2007 22:18:51 -0400 Received: by wx-out-0506.google.com with SMTP id i30so734028wxd for ; Thu, 19 Jul 2007 19:18:46 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=rwyDhvUoiW0D8hgEo7PY1vPvnnOluMwdolm0pdiQBi00MAh65/7YpXfiIZbnKJcspt/6yef3/0MYrK1guf7TDyPPs2lwjzGu0angVWpgpL3rXn6schKfjnj9u78xdhdYR7cJR3FLJVkvZQsvqnk8wRqrOCzUc4MpLOoy183+ZVk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=flJX1i1yTcQNmrqx5ukNU2ekzMatdElEk2YSrepzJfYus6SzM1yYuQDlAGthsqgz+agHkuA6q41cldcyFMXQbXVyi4p+kXRd8BmLN0x9WfBg1zta9D2jU3Sbi5m38++8Ygr5JacZRn+Q4oc4Oh6hKCz+hFfE3CVMDWHbJpArAy0= Received: by 10.90.35.15 with SMTP id i15mr1769agi.1184897926751; Thu, 19 Jul 2007 19:18:46 -0700 (PDT) Received: by 10.90.96.12 with HTTP; Thu, 19 Jul 2007 19:18:46 -0700 (PDT) Message-ID: Date: Thu, 19 Jul 2007 22:18:46 -0400 Sender: david.coallier@gmail.com To: "Stanislav Malyshev" Cc: scott.mcnaught@synergy8.com, internals@lists.php.net In-Reply-To: <46A00754.3070507@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <698DE66518E7CA45812BD18E807866CE648191@us-ex1.zend.net> <469CD717.2070607@pooteeweet.org> <469CE8CE.5080208@zend.com> <698DE66518E7CA45812BD18E807866CE648722@us-ex1.zend.net> <20A6448D-A497-4D95-AA9E-72D69421BB88@gravitonic.com> <469FE9F6.7050406@zend.com> <-4830671619941995385@unknownmsgid> <46A00754.3070507@zend.com> X-Google-Sender-Auth: b5765ff8bbbc666d Subject: Re: [PHP-DEV] POSIX regex From: davidc@php.net ("David Coallier") On 7/19/07, Stanislav Malyshev wrote: > > Yeah I also like that casting better than the "u" > > It's different things. Casting means "create string as binary, then in > runtime cast it to unicode", u"" means "this string is unicode". > -- You are right that casting means string -> binary, and that runtime cast to unicode means a string is unicode, however, after speaking with many php developers (not internals), the same answer always come up "It's ugly". Does that simply mean that it's ugly ? I believe not, it means that it's also unreadable, unclear at first look, and easy to overlook. One solution that I could foresee would be to recognize (unicode) within a function call. Ex: strlen( (unicode) "=D3glaig"); This would runtime-cast =D3glaig to a "unicode string". Expected answers: 1) I don't find it to be useful and better than "u" A: It is more readable, easier to find/notice and simply cleaner. 2) No A: Ok.. 3) It's going against the usual casting standard of (type) A: True The decision probably has been made already and if so just let me know and I'll stop trying to rise a voice for the community :P And no, I do not have a patch ;-) > Stanislav Malyshev, Zend Software Architect > stas@zend.com http://www.zend.com/ > (408)253-8829 MSN: stas@zend.com > > --=20 David Coallier, Founder & Software Architect, Agora Production (http://agoraproduction.com) 51.42.06.70.18