[plt-scheme] Keyword args

From: Paul Schlie (schlie at comcast.net)
Date: Sat Oct 23 21:48:49 EDT 2004

> Bradd W. Szonye wrote:
>> Paul Schlie wrote:
>> However although :x 2 may be though of as shorthand for (: x 2), it
>> doesn't intuitively seem natural to presume it extends it's semantic
>> influence beyond the symbol it's been pre-pended to, as x: 2 seems to
>> more intuitively naturally indicate given it's traditional syntactic
>> and semantic use. (which is I guess why I find (procedure :x 3 :y 3)
>> visually disturbing, as I  tend to quickly parse as (( procedure :x)
>> (3 :x) 3), which I know is not what was intended.
> I don't think it's any more counterintuitive than (+ 1 1).

But don't suspect you'd condone:

 (procedure +x y +z 2) :: (procedure (+ x y) (+ z 2)

which would be the analogy.

Posted on the users mailing list.