[racket] (Maybe) misleading error message

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sun Feb 19 22:07:17 EST 2012

In the interactions window, free variables are runtime errors not
compile time errors (unlike empty applications). If that had been in a
module (or in the definitions window), then you would have gotten
that, I believe.

Robby

On Sun, Feb 19, 2012 at 8:52 PM, Rodolfo Carvalho <rhcarvalho at gmail.com> wrote:
> Hello,
>
> I ran "(define my-generator (generator () (yield 1) (yield 2 3 4)))" on
> DrRacket's Interactions Window, but forgot to require racket/generator
> first.
>
> The error message was:
> #%app: missing procedure expression; probably originally (), which is an
> illegal empty application in: (#%app)
>
>
> Which makes sense.
> However, wouldn't it be more helpful if it would first complain about
> `generator' being undefined?
>
>
> []'s
>
> Rodolfo Carvalho
>
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users
>


Posted on the users mailing list.