- From: Kay, Michael <Michael.Kay@softwareag.com>
- Date: Sun, 2 Nov 2003 17:16:56 +0100
- To: Noe Michejda <noe_michejda@7thportal.pl>, Michael Rys <mrys@microsoft.com>, public-qt-comments@w3.org
Received on Sunday, 2 November 2003 11:17:52 UTC
> > RE: Overloading functions in XSLT and XQuery> XQuery 1.0 > decided to only allow overloading of XQuery's own built-in > functions and not provide overloading > > capabilities for the user-defined functions. > > This explains the perceived contradiction below. > > But XSLT allows overloaded user-defined functions. > This will be very inconvinient for products allowing using of > XSLT libraries in XQuery. And to some degree event for people > porting libraries from XSLT to XQuery. > Personally, I agree. I can't see any logical objection to overloading by arity (two functions with the same name but different numbers of arguments). I think it's very odd that the function calling mechanism in XQuery allows for it, but that user-defined functions have to be uniquely named. Michael Kay
Received on Sunday, 2 November 2003 11:17:52 UTC