Re: Thoughts on C version supported for PHP-Next
| From: | Derick Rethans | Date: | Mon, 28 Jul 2014 14:00:15 +0000 |
| Subject: | Re: Thoughts on C version supported for PHP-Next | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76233@lists.php.net to get a copy of this message | ||
On Fri, 25 Jul 2014, Andrea Faulds wrote:
>
> On 25 Jul 2014, at 18:02, Nikita Popov <nikita.ppv@gmail.com> 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.
> >
> > 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’t need to allow all of C99. We can simply allow using
> features that are widely supported and actually useful. For example,
> declarations between statements,
I think that makes code a lot less readable, so I would not be in favour
allowing this in our coding guidelines.
cheers,
Derick