Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14358 invoked from network); 25 Jul 2014 17:10:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jul 2014 17:10:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:44261] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/56-08559-C8F82D35 for ; Fri, 25 Jul 2014 13:10:37 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id CA38EB00085; Fri, 25 Jul 2014 13:10:38 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ADLWxU4GH0gu; Fri, 25 Jul 2014 13:10:38 -0400 (EDT) Received: from [192.168.0.15] (unknown [90.210.122.167]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 0FE3DB0007B; Fri, 25 Jul 2014 13:10:36 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Fri, 25 Jul 2014 18:10:34 +0100 Cc: Julien Pauli , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Nikita Popov X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] Thoughts on C version supported for PHP-Next From: ajf@ajf.me (Andrea Faulds) On 25 Jul 2014, at 18:02, Nikita Popov wrote: > 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. 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 //. Though for consistency with the rest of the codebase, perhaps we should = stick to C-style /* */ comments. -- Andrea Faulds http://ajf.me/