[plt-scheme] Keyword args

From: Bradd W. Szonye (bradd+plt at szonye.com)
Date: Sat Oct 23 21:51:01 EDT 2004

On Sat, Oct 23, 2004 at 09:48:49PM -0400, Paul Schlie wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> > 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.

I would object to it, but not because of the syntax.
-- 
Bradd W. Szonye
http://www.szonye.com/bradd


Posted on the users mailing list.