[racket] (Maybe) misleading error message

From: Rodolfo Carvalho (rhcarvalho at gmail.com)
Date: Sun Feb 19 21:52:14 EST 2012

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120220/bbace4d1/attachment.html>

Posted on the users mailing list.