Re: [RFC] Constant Scalar Expressions

From: Date: Wed, 14 Aug 2013 09:46:10 +0000
Subject: Re: [RFC] Constant Scalar Expressions
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-68509@lists.php.net to get a copy of this message
On 14 August 2013 11:01, Stas Malyshev <smalyshev@sugarcrm.com> wrote: > Hi! > >>> https://wiki.php.net/rfc/const_scalar_expressions > > I like the idea, but absence of constant support makes this thing much > less useful, as you can't do things like: > > public $angle = M_PI/2; > > I think this is one of the reasons this idea was never implemented - > because without constant support you're limited to doing things that are > quite obvious and trivial. Yeah, I'm generally +1 on the idea; constant support would be awesome though! -- Regards, Mike

« previous php.internals (#68509) next »