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

From: Nadeem Abdul Hamid (nadeem at acm.org)
Date: Wed Jul 20 18:36:23 EDT 2011

Seems like you need at least one newline at the end of the file -- put an
empty line or two after your printf("Hello") and then it should work.

On Wed, Jul 20, 2011 at 6:30 PM, Grant Rettke <grettke at acm.org> wrote:

> On Wed, Jul 20, 2011 at 4:10 PM, Greg Hendershott
> <greghendershott at gmail.com> wrote:
> >> define factorial(n)
> >>  if {n <= 1}
> >>    1
> >>    {n * factorial{n - 1}}
> >
> > Wouldn't it need to be something like:
> >
> > define( factorial(n)
> >  if {n <= 1}
> >   1
> >   {n * factorial{n - 1}} )
> >
> > ?
> >
> > That is, `define' itself needs some sort of handling, whether sweet or
> sour?
>
> I tried from the docs:
>
> #lang planet asumu/sweet racket
>
> printf("Hello")
>
> and got the error:
>
> application: bad syntax (illegal use of `.') in: (#<eof> . #<eof>)
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110720/502eaa3e/attachment.html>

Posted on the users mailing list.