...my perception of the scope
of the standard is specification of individual operations,
rather than in the parsing of expressions in a programming
language. However, I suppose we can define the individual
operations (including possible decorations) according to
their effect on expressions, and whether or not we are
thinking of free expressions or bound expressions would
affect how we do this.
On 2011-08-17 19:13:48 +0200, Arnold Neumaier wrote:
Since you compute a function of two variables, you need to apply
domain to the vector consisting of both variables, not to each
variable separately!
I don't know exactily who would be responsible for applying domain,
but I think this is counter-intuitive. If I write:
z = sqrt(x) + y;
I don't expect the computation of sqrt(x) to depend on y.
If this is the user who is responsible for applying domain on the
vector explicitly before the expression, then there are risks of
mistakes (unless the language forbids expressions and works only
on functions with explicit parameters).