[Bug 27908] K2-SeqDocFunc-12

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27908

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com

--- Comment #1 from Michael Kay <mike@saxonica.com> ---
Personally, I think that when $X is empty, $X[ff()] should never raise a
dynamic error. I know that our "errors and optimization" rules allow
expressions to be rewritten in a way that raises errors that would not be
raised by a "rigorous" evaluation, but I think that if we take a literal
interpretation of those rules, then any test case can raise any error it likes.
So I'm against making this change.

When eager (compile-time) evaluation of expressions fails, the correct strategy
is to replace the expression with something like error(...) that delays the
reporting of the error until execution time, so the failure only occurs if the
expression is actually evaluated.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 27 January 2015 15:01:53 UTC