Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:34893 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1675 invoked by uid 1010); 23 Jan 2008 20:21:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 1660 invoked from network); 23 Jan 2008 20:21:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jan 2008 20:21:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:47323] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/63-17042-1C1A7974 for ; Wed, 23 Jan 2008 15:21:22 -0500 Received: from trainburn-lm.corp.yahoo.com (trainburn-lm.corp.yahoo.com [207.126.233.11]) (authenticated bits=0) by mail.lerdorf.com (8.14.2/8.14.2/Debian-2) with ESMTP id m0NKLHtM016984 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 23 Jan 2008 12:21:17 -0800 Message-ID: <4797A1BD.2050803@lerdorf.com> Date: Wed, 23 Jan 2008 12:21:17 -0800 User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: ceo@l-i-e.com CC: php-dev References: <4794AE48.20005@daylessday.org> <38791.98.193.37.55.1201055548.squirrel@www.l-i-e.com> <47979570.4010703@lerdorf.com> <1201.209.254.223.2.1201118608.squirrel@www.l-i-e.com> In-Reply-To: <1201.209.254.223.2.1201118608.squirrel@www.l-i-e.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.92/5531/Wed Jan 23 02:32:09 2008 on colo.lerdorf.com X-Virus-Status: Clean Subject: Re: [PHP-DEV] why we must get rid of unicode.semantics switch ASAP From: rasmus@lerdorf.com (Rasmus Lerdorf) Richard Lynch wrote: > On Wed, January 23, 2008 1:28 pm, Rasmus Lerdorf wrote: >> I don't disagree with this, and that is actually why I insisted on >> having the unicode-semantics switch from the early days of the Unicode >> discussions, so you can blame me, again, if you consider it a bad >> design >> decision. > > Would the world really end for people who write NEW apps in a NEW > version of PHP, #6, if they had to put u"foo" to get their nifty > new-fangled Unicode strings?... > > Surely that is better than making a BC break of gigantic proportions > for the unwashed masses that don't know a charset from a croquette and > having NOBODY move to PHP 6 except a handful of large corporations... Like I said, without the unicode semantics switch, we can't make unicode strings default for BC reasons. The switch was there to allow not just large corporations, but also smaller companies and projects not restricted by portability or BC concerns to build stuff from the ground up entirely in Unicode. u"foo" is a hack that will eventually disappear from the various languages that have it or something similar. 10 years from now I doubt anybody could even imagine that you could have a string that didn't carry its character set with it. Unfortunately 10 years ago, I wasn't very concerned about that. -Rasmus