|
From: avl <av...@lo...> - 2017-02-14 22:18:40
|
On Tue, Feb 14, 2017 at 09:32:17PM +0000, Peter da Silva wrote: > On 2/14/17, 3:24 PM, "avl" <av...@lo...> wrote: >> weird - and not so much for assigning to sin(0)+1, but for >> allowing all kinds of expressions to evaluate to the target >> variable, *except* direct function-calls. > I think it would make more sense for anything that isn’t > an “lvalue” to be an error. So: > sin(0)+1 = 1 ;# error > sin(0) = 1 ;# OK > sin = 1 ;# OK > “sin(0)+1” = 1 ;# OK Sounds reasonable. Not sure, if the parse tree allows easy recognition of sub-trees that represent parsed quoted strings with substitutions like in: "arr($key)" = 42 > “sin”(0) = 1 ;# OK What's the supposed meaning for this? |