[racket] (Maybe) misleading error message

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


I ran "(define my-generator (generator () (yield 1) (yield 2 3 4)))" on
DrRacket's Interactions Window, but forgot to require racket/generator

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?


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.