Arc Forumnew | comments | leaders | submitlogin
4 points by akkartik 5180 days ago | link | parent

Ah, turns out PLT/racket does support keyword and optional args: http://www.cs.utah.edu/plt/publications/scheme09-fb.pdf

Optional args:

  (lambda([a 3]) ..)
Keyword args:

  (lambda(#:a a) ..)
which seems a bit redundant.

Optional keyword args:

  (lambda(#:a [a 3]) ..)
And if you have a rest argument you must specify all optional and keyword arguments. Most interesting..