[plt-scheme] Some fine distinctions

From: Eric Tanter (etanter at dcc.uchile.cl)
Date: Wed May 13 06:24:03 EDT 2009

Nice! I was not aware of this, but I've looked at the SRFI and it is  
indeed exactly what I was thinking of (with the additional distinction  
between evaluated and non-evaluated arguments).
And it's in PLT scheme too ;-)

Thanks for pointing this out,

-- Éric


On May 12, 2009, at 19:41 , Andreas Rottmann wrote:

> Eric Tanter <etanter at dcc.uchile.cl> writes:
>
>> Right, even though that is not so nice to have to write that at each
>> use site. Or alternatively to export any possible order for users to
>> use.
>>
>> In a more general case, one could imagine something like:
>>
>> (f ? 3 ? ? 5) to say " here are the 2nd and 5th parameters".
>>
> FWIW, this is exactly what SRFI-26 does:
>
> (define (f x y z)
>  (+ (* x y) z))
>
> ((cut f <> 3 <>) 42 66) ; => 192
>
> Cheers, Rotty



Posted on the users mailing list.