W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2006

[Bug 3818] Static typing of $input-context1/works[1]/employee[1]/empnum[1]

From: <bugzilla@wiggum.w3.org>
Date: Thu, 02 Nov 2006 18:59:00 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GfhmG-0005Sl-N2@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3818





------- Comment #6 from mike@saxonica.com  2006-11-02 18:59 -------
In fact we explicitly decided to permit a broadening "treat as". There was a
rule against it at one stage, and it placed a great and unnecessary burden on
users to understand the static type inferencing. When I assert EXP treat as
element(employee) I am asserting that EXP will always return an employee. I
want the system to tell me if EXP doesn't return an employee, but I don't want
it to reject my query because the system was able to work out for itself that
EXP was an employee without my telling it.
Received on Thursday, 2 November 2006 18:59:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:18 GMT