[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: call/cc



> -----Original Message-----
> From: owner-ll1-discuss@ai.mit.edu
[mailto:owner-ll1-discuss@ai.mit.edu]
> On Behalf Of Guy Steele - Sun Microsystems Labs
> Sent: Monday, December 17, 2001 7:34 AM
> To: kragen@pobox.com; pixel@mandrakesoft.com
> Cc: ll1-discuss@ai.mit.edu
> Subject: Re: call/cc
> 
> 
>    From: Pixel <pixel@mandrakesoft.com>
>    Date: 15 Dec 2001 01:24:21 +0100
> 
>    ... this is pretty dumb... Maybe a better closure example would be
> better.
>    What about adding the 2 parameters + 1.
> 
> For a really good test that will provide better separation
> of the languages, try curried addition of first one parameter,
> then the other, plus 1:
> 
> (((lambda (x) (lambda (y) (+ x y 1))) 3) 5)     Scheme, 24 tokens
> 
> --Guy

SmallScript (superset of Smalltalk):

    [:x|[:y|x+y+1]](3)(5)		"13 tokens"

-- Dave S. [SmallScript LLC]

SmallScript for the AOS & .NET Platforms
David.Simmons@SmallScript.com | http://www.smallscript.org