mwatts15 / Crono

Scheme project for CS345
0 stars 0 forks source link

Allow for definition of recursive functions #4

Closed mwatts15 closed 11 years ago

mwatts15 commented 11 years ago

Make this work

(let ((f (lambda (x) (if (= x 0) 0 (+ (f (- x 1))))))))
mwatts15 commented 11 years ago

What Cannata expects in this one isn't clear to me since Crono already supports recursion (at least through defines). Maybe we want to support recursion in let bindings as well?

cvidal commented 11 years ago

I assume he means adding something like letrec.