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

Yavuz Arkun yarkun at gmail.com
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



More information about the plt-scheme mailing list