Re: [TF-LIB] COALESCE is an unhelpful choice of name

On 14 Nov 2009, at 20:07, Andy Seaborne wrote:

> What about TRY ?
>
>  TRY(xsd:integer(?x), 0)

Try is a bit too much like Try/Catch.

> > What happens if all the terms are unbound?  An error?
>
> I think it has to be an error and XXX(expression) without a default  
> value is a no-op.

It's NULL in SQL. That makes most sense I think.

- Steve

-- 
Steve Harris, CTO, Garlik Limited
2 Sheen Road, Richmond, TW9 1AE, UK
+44(0)20 8973 2465  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10  
9AD

Received on Sunday, 15 November 2009 09:51:53 UTC