[plt-dev] compose

From: Jos Koot (jos.koot at telefonica.net)
Date: Sun May 3 08:24:30 EDT 2009

(compose) --> error, procedure compose: no clause matching 0 arguments
Why not (compose) --> #<procedure:values> ?

The docs of DrScheme, version [3m] say:

(compose proc ...) → procedure? 
proc : procedure?

This suggests that compose can be applied without actual arguments.
The docs do not specify what happens in this case.

I propose:

1: adding one more case-lambda clause to the definition of compose:
(() values)

2: adding "(compose) --> procedure values" in the docs.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20090503/e0488781/attachment.html>

Posted on the dev mailing list.