<div dir="ltr">One more consideration: function calls seem to be more expensive than inline expressions. And then there's that baggage of a custom library...</div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-28 14:35 GMT+02:00 W.S. Hager <span dir="ltr"><<a href="mailto:wshager@gmail.com" target="_blank">wshager@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hmm, I'm not so sure. The if/else clause is pretty short as it is, and semantically more clear. But it's another discussion altogether. <div><br></div><div>For me the paint points remain in array support/semantics. I thought it best to let it rest for a while and see if the workarounds proof to be feasible. I think I was too eager to address this in the first place.<div><br></div><div>Regards,</div><div>Wouter</div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-06-28 0:07 GMT+02:00 Christian Grün <span dir="ltr"><<a href="mailto:christian.gruen@gmail.com" target="_blank">christian.gruen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>> Personally I would also like to see a ternary operator, but I haven't<br>
> mentioned it until now ;-)<br>
<br>
</span>+1 ;) But if I remember right, it has already been motivated and<br>
discussed in the group before.<br>
<br>
Talking about conditions: An if expression without 'else' branch would<br>
often be nice as well (if not present, an empty sequence could be<br>
returned).<br>
<div><div><br>
<br>
> On 26 June 2015 at 12:18, W.S. Hager <<a href="mailto:wshager@gmail.com" target="_blank">wshager@gmail.com</a>> wrote:<br>
>> Hello,<br>
>><br>
>> I've been working with the recent xquery 3.1 implementation in the develop<br>
>> branch eXist-db. I encountered some cases that were quite hard to work<br>
>> around:<br>
>><br>
>> - the lack of array:index-of()<br>
>> - the lack of the iterator index in arrayfor-each and related higher-order<br>
>> functions<br>
>><br>
>> Perhaps someone of the workgroup is available to discuss those cases.<br>
>><br>
>> Thanks,<br>
>> Wouter<br>
>> --<br>
>><br>
>> W.S. Hager<br>
>> Lagua Web Solutions<br>
>> <a href="http://lagua.nl" rel="noreferrer" target="_blank">http://lagua.nl</a><br>
>><br>
>><br>
>><br>
>> --<br>
>><br>
>> W.S. Hager<br>
>> Lagua Web Solutions<br>
>> <a href="http://lagua.nl" rel="noreferrer" target="_blank">http://lagua.nl</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:talk@x-query.com" target="_blank">talk@x-query.com</a><br>
>> <a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/listinfo/talk</a><br>
><br>
><br>
><br>
> --<br>
> Adam Retter<br>
><br>
> skype: adam.retter<br>
> tweet: adamretter<br>
> <a href="http://www.adamretter.org.uk" rel="noreferrer" target="_blank">http://www.adamretter.org.uk</a><br>
</div></div>> _______________________________________________<br>
> <a href="mailto:talk@x-query.com" target="_blank">talk@x-query.com</a><br>
> <a href="http://x-query.com/mailman/listinfo/talk" rel="noreferrer" target="_blank">http://x-query.com/mailman/listinfo/talk</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div>
<p> 
W.S. Hager<br>
Lagua Web Solutions<br>
<a href="http://lagua.nl/" target="_blank">http://lagua.nl</a><br></p></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>
<p> 
W.S. Hager<br>
Lagua Web Solutions<br>
<a href="http://lagua.nl/" target="_blank">http://lagua.nl</a><br></p></div></div>
</div>