apricot-lang / apricot

Clojure-like Lisp on Rubinius
94 stars 7 forks source link

Recur with optional arguments #34

Closed solson closed 11 years ago

solson commented 11 years ago

We need to make recur work with optional arguments. Maybe this works already? I haven't checked, but there should be tests anyway.

causal-agent commented 11 years ago

I don't think this works right now, because recur is not aware of required arguments vs. optional arguments, unless you've changed that since adding overloads. When I added optional arguments, recur always expected to be given values for all of the arguments.

solson commented 11 years ago

I think it might be just fine to treat optional arguments as required in recur.