Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76229 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67792 invoked from network); 28 Jul 2014 11:41:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2014 11:41:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=liaohuqiu@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=liaohuqiu@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.171 as permitted sender) X-PHP-List-Original-Sender: liaohuqiu@gmail.com X-Host-Fingerprint: 209.85.192.171 mail-pd0-f171.google.com Received: from [209.85.192.171] ([209.85.192.171:50321] helo=mail-pd0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/F8-26001-EE636D35 for ; Mon, 28 Jul 2014 07:41:35 -0400 Received: by mail-pd0-f171.google.com with SMTP id z10so9789344pdj.30 for ; Mon, 28 Jul 2014 04:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=JUytJ7u4hoQ93nFhfEOCPOewaQCu6FmrdTlle8Q3lVc=; b=Sv8XIWF04EMdEVtvBeAJymeagZ+65CCA8IQBc4C2yzWB4je/bW5aDV6XiHVL6KZP6Z 0OQ6sdqoKTn03ThwuOM21cDzQWBPPOK/dzGLtZcVDA8x32olFEBxWDKJuILq3c6GUFZc ueFHvDOCqsOMvX1VBmkpEcx8BSGWgc3/qmxIOyHlNVEnFqLnSpdGhEipIEA++5wZbZng e4t7zBw7xxLWlsGz6UHnwFWyfhjFo69CRlCux53iQdHkckpqS9melBDDpxUERX0vmDqQ Mt+NXDehIv+gIrPHkmSuhEJSHXqmZVe10L1i7/l9ipXKk5X89hlyCVPWRR2QNTj2n2VF hpJg== X-Received: by 10.70.87.177 with SMTP id az17mr9633560pdb.114.1406547704030; Mon, 28 Jul 2014 04:41:44 -0700 (PDT) Received: from [172.20.10.2] ([117.136.0.97]) by mx.google.com with ESMTPSA id kj6sm23891039pdb.89.2014.07.28.04.41.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Jul 2014 04:41:43 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_12BE91FB-B17E-4C9D-BED1-34357A8ECED6" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) In-Reply-To: Date: Mon, 28 Jul 2014 19:41:20 +0800 Cc: internals@lists.php.net Message-ID: <208010FD-8D4D-4C54-A162-45BCE01BCE78@gmail.com> References: To: David Soria Parra X-Mailer: Apple Mail (2.1878.2) Subject: Re: [PHP-DEV] Thoughts on C version supported for PHP-Next From: liaohuqiu@gmail.com (Huqiu Liao) --Apple-Mail=_12BE91FB-B17E-4C9D-BED1-34357A8ECED6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 IMP, C89 is simple enough and reliable. Though it is old. it is wildly = supported. On Jul 26, 2014, at 1:22 AM, David Soria Parra wrote: > On 2014-07-25, Andrea Faulds wrote: >>=20 >> On 25 Jul 2014, at 18:02, Nikita Popov wrote: >>=20 >>> I think the main question here is whether MSVC will have good C99 = support >>> by the time PHP-Next is released. The other major compilers (GCC, = Clang, >>> Intel) may not support all of C99 (esp stuff like FP pragmas), but = have a >>> reasonable degree of support. >>>=20 >>> If we can, I'd be very much in favor of using C99. In particular = mixed >>> code+declarations is a major code quality improvement to me. >>=20 >> Well, we don=92t need to allow all of C99. We can simply allow using = features that are widely supported and actually useful. For example, = declarations between statements, and C++-style line comments with //. >>=20 >> Though for consistency with the rest of the codebase, perhaps we = should stick to C-style /* */ comments. >=20 > It is hard to judge what "widely supported" means. PHP is so = widespread > that people run it on embedded systems, 10+ year old servers (see old > masters.php.net) and compile them with compiler most of us have never > touched (suncc, pcc). >=20 > I think we have to come up with good arguments for C99 support that we = just > can't do with C89 in order to potentially keep out people. >=20 > tl;dr: I believe unless we have strong arguments we should = acknowkledge that PHP > is so widespread that changing compiler can make some users unhappy = and if we > don't have really good reasons we shouldn't. >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php --Apple-Mail=_12BE91FB-B17E-4C9D-BED1-34357A8ECED6--