Re: constant scalar expressions
On Sat, Feb 1, 2014 at 12:11 PM, Rasmus Schultz <[email protected]> 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
Thread (3 messages)