On 12/16/2010 10:59 PM, John Cowan wrote:
> Per Bothner scripsit:
>
>> I think that misses the point - it becomes too much hassle to
>> manually type in the renames, so people aren't going to do it.
>
> Ah, but the default names are the overrides, *not* the "match-" forms.
> Sneaky, eh?

Cute.  But there seems to be a mistake in the definitions of lambda
and lambda* - they have the same definitions and expansions in terms
of core:lambda.

Shouldn't lambda be:

     (lambda <pat> <body> <body> ...)

and be equivalent to:

     (core:lambda id
       (match id
         (<pat> <body> <body> ...)))


Also, the descriptions seem wrong.  I would expect:

lambda, which is useful for creating a function of zero or more 
arguments which matches its arguments taken as a list against a pattern

and

lambda*, which is useful for creating a function of one argument which 
matches that argument against one or more patterns

for compatibility with traditional lambda.
-- 
        --Per Bothner
[email protected]   http://per.bothner.com/

_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to