From mike at saxonica.com Thu Mar 10 10:45:28 2016 From: mike at saxonica.com (Michael Kay) Date: Thu, 10 Mar 2016 18:45:28 +0000 Subject: [xquery-talk] [saxon] Sun/Oracle Using Saxon 9.2.x.y to test JDK-N, N<=9 since 2010. In-Reply-To: References: Message-ID: Thanks for letting us know, and sorry for the belated response. The Saxonica business model is working pretty well - lots of people use the open source version for some pretty amazing things, they spread the word to other developers, and enough of those developers want the extra features of the commercial versions that we generate the revenue to keep developing the product. So we don't resent the fact that lots of people are getting a free lunch, especially if they all tell their friends how wonderful the product is: the more people use the open source product, the bigger our potential market for the commercial product. Michael Kay Saxonica > On 28 Feb 2016, at 14:41, nikita.zinoviev at gmail.com wrote: > > Guys, could you please ask Mike if we owe him any money > for using his Saxon 9.2 (A?) in out job destribution system (Aurora) > which executes 40000 jobs a day on 2000 of servers as a part of > JDK testing. > > Thank you so much for your help, > > Nikita Zinoviev > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 > _______________________________________________ > saxon-help mailing list archived at http://saxon.markmail.org/ > saxon-help at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/saxon-help From wshager at gmail.com Mon Mar 14 05:48:29 2016 From: wshager at gmail.com (W.S. Hager) Date: Mon, 14 Mar 2016 14:48:29 +0100 Subject: [xquery-talk] function declaration vs expression Message-ID: Hello, What is the difference between a function declaration and a function expression in a variable declaration, eg: declare variable $local:id := function($x) { $x } and why does it exist? -- W.S. Hager Lagua Web Solutions http://lagua.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From g at 28.io Mon Mar 14 06:18:24 2016 From: g at 28.io (Ghislain Fourny) Date: Mon, 14 Mar 2016 15:18:24 +0100 Subject: [xquery-talk] function declaration vs expression In-Reply-To: References: Message-ID: Hi WS, Higher-order functions were added in XQuery 3.0 so that you can build them dynamically (using closures) and pass them as parameters like any other items. I see little benefit in defining your function as a variable declaration with an inline function expression vs. a static function declaration such as declare function local:id($x) { $x }; You can reference the former with $local:id and the latter with local:id#1 to make them flow around as function items. You can call the former with $local:id($x) and the latter with local:id($x). The former has no name, the latter has a name (local:id). When you need a function that dynamically depends on the value of a variable at runtime, however, you will need to use inline function expressions. Variables in scope will be added to the closure of the created function item. I hope it helps! Kind regards, Ghislain On Mon, Mar 14, 2016 at 2:48 PM, W.S. Hager wrote: > Hello, > > What is the difference between a function declaration and a function > expression in a variable declaration, eg: > > declare variable $local:id := function($x) { $x } > > and why does it exist? > > -- > > W.S. Hager > Lagua Web Solutions > http://lagua.nl > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From wshager at gmail.com Mon Mar 14 21:48:57 2016 From: wshager at gmail.com (W.S. Hager) Date: Tue, 15 Mar 2016 06:48:57 +0100 Subject: [xquery-talk] function declaration vs expression In-Reply-To: References: Message-ID: Ah right, you can't overload a variable of course. Op maandag 14 maart 2016 heeft Ghislain Fourny het volgende geschreven: > Hi WS, > > Higher-order functions were added in XQuery 3.0 so that you can build > them dynamically (using closures) and pass them as parameters like any > other items. > > I see little benefit in defining your function as a variable > declaration with an inline function expression vs. a static function > declaration such as > > declare function local:id($x) { > $x > }; > > You can reference the former with $local:id and the latter with > local:id#1 to make them flow around as function items. You can call > the former with $local:id($x) and the latter with local:id($x). The > former has no name, the latter has a name (local:id). > > When you need a function that dynamically depends on the value of a > variable at runtime, however, you will need to use inline function > expressions. Variables in scope will be added to the closure of the > created function item. > > I hope it helps! > > Kind regards, > Ghislain > > On Mon, Mar 14, 2016 at 2:48 PM, W.S. Hager > wrote: > > Hello, > > > > What is the difference between a function declaration and a function > > expression in a variable declaration, eg: > > > > declare variable $local:id := function($x) { $x } > > > > and why does it exist? > > > > -- > > > > W.S. Hager > > Lagua Web Solutions > > http://lagua.nl > > > > > > _______________________________________________ > > talk at x-query.com > > http://x-query.com/mailman/listinfo/talk > -- W.S. Hager Lagua Web Solutions http://lagua.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: