Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62551 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 607 invoked from network); 27 Aug 2012 01:55:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Aug 2012 01:55:59 -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 209.85.220.170 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.170 mail-vc0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:47407] helo=mail-vc0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/24-13425-EA3DA305 for ; Sun, 26 Aug 2012 21:55:59 -0400 Received: by vcbgb30 with SMTP id gb30so4474220vcb.29 for ; Sun, 26 Aug 2012 18:55:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=4mu8e9/Eaf3dfJUzFqEEawiLmwd4uwq6kRMGfEDg14A=; b=Ifc3UbjLMI60+c/mWEI4oDVI2U4MpcSnI69w7SoczTaWH7W4Wb8e0IZiasgKlnUolU ankmHleMOogriKN5waywwO15lANFyHgy6DhpAFHS8IHLjhk/Uo1Jvw4omDla3GYtIM1V YTdBVp9LTSasdwCmrdg2t8/ICuzMXBHQqUFurh+qhT1IvGwVF8leSqZ5jCO+i8wbPb/c bQaVnyQiwz1dqP0NEbMR7XFSL3yGagI+rcUaQkPg9TQnTwNFLRdAUAVooiZuZ6Ua2TfN +bkZzET0JXgtc6VkYgfa41XzHOjMdzf6K0k3YS2EV+IW0niy24/+EjLCukSJ749fDKU0 XfmQ== Received: by 10.58.23.202 with SMTP id o10mr11078738vef.57.1346032556280; Sun, 26 Aug 2012 18:55:56 -0700 (PDT) Received: from [192.168.200.148] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id b2sm9062750vdu.3.2012.08.26.18.55.54 (version=SSLv3 cipher=OTHER); Sun, 26 Aug 2012 18:55:55 -0700 (PDT) Message-ID: <503AD3A8.4010400@lerdorf.com> Date: Sun, 26 Aug 2012 18:55:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Lars Strojny CC: PHP Internals References: <503A68F9.9050405@sugarcrm.com> <503A84F3.4080808@sugarcrm.com> <503ACBDD.3080304@lerdorf.com> <6C036B08-0E70-4A09-A8B6-EAAC518C28D0@strojny.net> In-Reply-To: <6C036B08-0E70-4A09-A8B6-EAAC518C28D0@strojny.net> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmrIBJaR1maWU5guM1UFFRLMQkKp9r/xvRu6ho0VcS9E/SXEK7XGfUVaxIvoJGPiQ9PSHwk Subject: Re: [PHP-DEV] [VOTE]Call for voting: support use list in foreach From: rasmus@lerdorf.com (Rasmus Lerdorf) On 08/26/2012 06:48 PM, Lars Strojny wrote: > Hi Gwynne, > > Am 27.08.2012 um 03:39 schrieb Gwynne Raskind : > >> (And >> a side note on that, the requirement of C89 standard compliance in PHP >> has less and less advantage these days, and handicaps those few >> language features in the later flavors of C (C99, gnu99, Clang C, >> etc.) which -could- lessen the current unreadability of the code.) > > OT but because I stumbled upon that some time ago: what was the original reason to enforce C89 and what would be needed to allow a modern standard? Main reason was the lack of compiler support on some platforms. C89 was the lowest common denominator that gave us the widest possible platform support. And we aren't just C89 anymore actually. We still try to stick to it when possible, but for example in the intl extension you will find C++ and it won't build without it. The idea there is that any small embedded platform that may still only have C89 support is unlikely to link against the massive ICU library. But we may be at the point where even tiny embedded platforms have better compiler support and we don't need to stick to C89 anymore. -Rasmus