W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010

Re: + for fn:concat

From: Steve Harris <steve.harris@garlik.com>
Date: Wed, 29 Sep 2010 12:03:45 +0100
Cc: Andy Seaborne <andy.seaborne@epimorphics.com>, SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <F89555FD-2E33-4F1D-96EC-809FF6C3928A@garlik.com>
To: Gregory Williams <greg@evilfunhouse.com>
On 2010-09-28, at 19:12, Gregory Williams wrote:

> On Sep 28, 2010, at 2:02 PM, Andy Seaborne wrote:
> 
>> In the draft response to a comment:
>> 
>> http://www.w3.org/2009/sparql/wiki/CommentResponse:PA-1
>> 
>> [[
>> Also, note that the actual syntax may still change, in fact, the group is discussing whether to take your proposal on board to allow '+' as a shortcut notation for string concatenation (fn:concat).
>> ]]
> 
> I've never liked the idea of using + for string concatenation. It never seemed to square with my intuition, stemming from numeric addition, that + should be commutative.

I'm not a fan of overloading in general, but more specifically the use of + for string concatenation in other weakly typed languages, Javascript for .e.g., is problematic.

- Steve

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  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 Wednesday, 29 September 2010 11:04:58 GMT

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