[racket] Sweet expressions error? WAS Re: Sweet expressions; or making it easier to introduce Racket to me and my coworkers :-)

From: Grant Rettke (grettke at acm.org)
Date: Wed Jul 20 16:59:24 EDT 2011

On Wed, Jul 20, 2011 at 2:24 PM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> On 2011-07-20 15:19:44 -0400, Asumu Takikawa wrote:
>> To use, write a #lang line like this:
>>
>>   #lang asumu/sweet racket
>>
>>   printf("Hello")
>
> Whoops, that should be
>  #lang planet asumu/sweet racket

Thanks.

Just tried this:

#lang planet asumu/sweet racket

define factorial(n)
  if {n <= 1}
    1
    {n * factorial{n - 1}}

And got

application: bad syntax (illegal use of `.') in: (#<eof> . #<eof>)

In DrRacket, version 5.1.1 [3m].

Did I do something wrong?



Posted on the users mailing list.