[xquery-talk] incorrect syntax?

Ronald Bourret rpbourret at rpbourret.com
Tue Oct 2 08:51:12 PDT 2012


Do I sense an International Obfuscated XQuery Code Contest [1] [2] in 
the offing?

-- Ron

[1] http://www.ioccc.org/
[2] http://en.wikipedia.org/wiki/International_Obfuscated_C_Code_Contest

On 10/2/2012 1:38 AM, Andrew Welch wrote:
> On 2 October 2012 09:30, David Carlisle<davidc at nag.co.uk>  wrote:
>> On 02/10/2012 08:56, Andrew Welch wrote:
>>>
>>> ha that's great (if a little contrived):
>>>
>>> declare default function namespace "x";
>>> declare function return ($x) { $x+1 };
>>> return (23)
>>>
>>> returns 24
>>
>>
>> Yes that is contrived, I think it's clearer if you write it like this
>>
>> declare default function namespace "return";
>> declare variable $return := 23;
>> declare function return ($return) { $return+1 };
>> return ($return)
>
> That is indeed much clearer, thanks David.
>
>
> ;)
>
>


More information about the talk mailing list