Re: [RFC] Constant Scalar Expressions
| From: | Julien Pauli | Date: | Wed, 14 Aug 2013 08:14:39 +0000 |
| Subject: | Re: [RFC] Constant Scalar Expressions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68505@lists.php.net to get a copy of this message | ||
On Tue, Aug 13, 2013 at 6:12 PM, Anthony Ferrara <ircmaxell@gmail.com>wrote:
> Hello all,
>
> I'd like to propose a new RFC for 5.NEXT:
>
> https://wiki.php.net/rfc/const_scalar_expressions
>
> This allows for defining constant expressions which are resolved at compile
> time.
>
> for example:
>
> const FOO = 1 + 1;
> static $bar = 1 << 2;
> function foo($a = 1 | 2) {}
> class foo {
> public $bar = 1 << 2;
> }
>
> Thoughts?
>
Haha Anthony, so strange you think about this point I was just myself
figuring out yesterday.
I'am obviously +1.
Julien Pauli.