Re: constant scalar expressions

From: Date: Sun, 02 Feb 2014 02:32:24 +0000
Subject: Re: constant scalar expressions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-71963@lists.php.net to get a copy of this message
On Sat, Feb 1, 2014 at 12:11 PM, Rasmus Schultz <me@rasmus-schultz.com> wrote: > Did you consider supporting non-scalar values? > Did you consider permitting e.g. function calls in declarations? > And finally, and perhaps most importantly, did you consider lazy (late, > on-access) evaluation of expressions? > Short answer to this is that those types of cases could (and perhaps should) be covered by property getter/setters. We *could* bake it into the syntax, and it would certainly make the syntax for PHP scripts look cleaner, but as a first step focusing on constant scalars only allows us to take a step forward and reevaluate to see where we are after a version. -Sara

« previous php.internals (#71963) next »