[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 4.1.5.5-svn2may2009 [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.

Jos
-------------- 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.