W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2009

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

From: Steve Harris <steve.harris@garlik.com>
Date: Sun, 15 Nov 2009 09:51:23 +0000
Message-Id: <AD2866E5-2A3B-4F1D-9E65-E2BC9F8525F8@garlik.com>
To: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:40 GMT