QEP 2 adds the [x, size = n] expression. However, it doesn't specify whether the expression x should be evaluated once and its result copied to every element, or if x should be evaluated n times.
The spec should be clearer about the evaluation semantics of repeated constant arrays. I would prefer to use the semantics that x is evaluated once.
I thought we had captured that in the proposal - I remember discussing it. The expression should be evaluated exactly once, independent on the size of the array (specifically also for size 0).
QEP 2 adds the
[x, size = n]
expression. However, it doesn't specify whether the expressionx
should be evaluated once and its result copied to every element, or ifx
should be evaluatedn
times.The spec should be clearer about the evaluation semantics of repeated constant arrays. I would prefer to use the semantics that
x
is evaluated once.