[plt-scheme] How to scribble optional arguments in defproc?

From: Yavuz Arkun (yarkun at gmail.com)
Date: Sun Jan 20 01:41:30 EST 2008

Grant Rettke wrote:
> What is the "right way"to define optional arguments in @defproc statements?
>
> I have been using (optional ...) so far.
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>   
In @defproc, arguments are automatically formatted as optional when the 
scribbled definition includes a default value, as well as the id and 
contract.

For @defparam and @defboolparam, the default values need to be described 
in the prose section.

Yavuz


Posted on the users mailing list.