W3C home > Mailing lists > Public > public-qt-comments@w3.org > March 2003

Re: XQuery 1.0 - 3.12.3 and 3.12.5

From: Jeni Tennison <jeni@jenitennison.com>
Date: Tue, 4 Mar 2003 16:07:16 +0000
Message-ID: <13422126395.20030304160716@jenitennison.com>
To: Svgdeveloper@aol.com
CC: public-qt-comments@w3.org

Hi Andrew,

> The cast expression of 3.12.3 and the constructor function of 3.12.5
> seem to be essentially duplicating the same functionality.
> It isn't immediately obvious to me why such duplication should be
> necessary or appropriate, particularly since the cast expression
> seems sometimes/always simply to add the words "cast as" before what
> would otherwise be a constructor function.
> Is there a compelling reason for the continuing existence of this
> seeming duplication? Or am I missing something obvious?

We have to have the full "cast as" form because otherwise it wouldn't
be possible for someone to create a value of a type in no namespace
whose name clashed with one of the built in functions or node tests,
such as "data" or "node".

The short forms, on the other hand, are a lot more convenient for the
common cases.



Jeni Tennison
Received on Tuesday, 4 March 2003 11:07:49 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:11 UTC