2013/8/13 Anthony Ferrara <ircmax...@gmail.com>: > 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? > > Anthony
Since the RFC specifically avoid the possibility to use non static values: +1 Cheers, Patrick -- Patrick Allaert --- http://code.google.com/p/peclapm/ - Alternative PHP Monitor -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php