[plt-scheme] What is the "right way"to define keyword arguments in @defproc statements?

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

Grant Rettke wrote:
> What is the "right way"to define keyword arguments in @defproc statements?
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>   
Based on documentation of @defproc and usage in official documentation,

(keyword id contract default)

e.g.,

(#color  text-color (symbols 'black 'fuchsia 'mauve) 'black)

This would be formatted as an optional keyword argument. Leave out the 
default value to have it formatted normally.

Yavuz


Posted on the users mailing list.