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

RE: Overloading functions in XSLT and XQuery

From: Michael Rys <mrys@microsoft.com>
Date: Wed, 17 Sep 2003 11:44:10 -0700
Message-ID: <EB0A327048144442AFB15FCE18DC96C7C018FA@RED-MSG-31.redmond.corp.microsoft.com>
To: "Xavier C. Franc" <xfranc@online.fr>, <public-qt-comments@w3.org>

Because it adds complexity to the language and to the implementations
and it may contradict a future overloading based on the type signature
that is preferred by many members but which was postponed to Vnext.

We designed the built-in overloaded functions that either approach
should work, but allowing users to overload would lock us in.

Best regards

> -----Original Message-----
> From: public-qt-comments-request@w3.org [mailto:public-qt-comments-
> request@w3.org] On Behalf Of Xavier C. Franc
> Sent: Wednesday, September 17, 2003 11:30 AM
> To: public-qt-comments@w3.org
> Subject: Re: Overloading functions in XSLT and XQuery
>  > Currently XSLT allows user function with same name but different
>  > number of parameters (arity), but XQuery doesn't.
>  > Why such difference? This feature might be as useful in XQuery as
> I don't see any reason for such a difference. After all,
> some predefined functions and operators are overloaded,
> so why not user functions ?
> --
> Xavier FRANC
Received on Wednesday, 17 September 2003 14:44:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:49 UTC