[plt-scheme] Syntax question

From: Arthur Nunes-Harwit (anh at cs.rit.edu)
Date: Thu Jun 5 16:04:21 EDT 2008

   I am hoping to get unbiased opinions from this group concerning 
questions of syntax.

   Java uses + as its string concatenation operator.  This is reasonable, 
since + is often used as the name of the operator in a monoid.  Further, I 
can imagine using + for append (as opposed to Haskell's ++) since lists 
with append also form a monoid.  If that's the case, then the cons 
operator (say ML's ::) should have higher precedence than +.

We'd rather write

(2+1)::2::1::[] + 0::[]

rather than

(2+1::2::1[]) + (0::[])



Posted on the users mailing list.