Re: [q-lang-users] New stuff in cvs: multichar ops, views
Brought to you by:
agraef
From: Keith T. <kaz...@ea...> - 2007-06-28 11:00:46
|
Hello All -- --- Rob Hubbard <hub...@gm...> writes: - The purpose of (+:) is to form complex numbers syntactically, - when they are in some sense 'atomic' or 'literal' semantically. I'm with Rob on this one: '+:' is not simply another way of saying '+'. It should always do the right thing wrt. PoLS (Principle of Least Surprise). --- Rob Hubbard <hub...@gm...> writes: - Python get this wrong...Haskell certainly gets this wrong. - Please don't let Q follow suit and also get this wrong. *** AND *** --- John Cowan <co...@cc...> writes: - Haskell may simply have gotten this wrong, as C did with && and ||. If compatibility with Haskell (i.e., low precedence) leads to incorrect results (i.e., *surprise*), then let's not be compatible. Let's add an explanation to the manual that warns Haskell programmers to expect to "get their sums right with Q". ;-) Cheers, Keith |