mwatts15 / Crono

Scheme project for CS345
0 stars 0 forks source link

Rewrite CronoFunctions as LambdaFunctions #11

Closed mwatts15 closed 11 years ago

mwatts15 commented 11 years ago

CronoFunctions have a separate process for evaluation which makes processing them like other functions (using closures and currying) difficult.

tvarney commented 11 years ago

Should this be closed? I don't think it would be possible to rewrite CronoFunctions as LambdaFunctions, as they have different semantics. Even if they both have fixed argument lists, CronoFunctions are the basic building blocks that have to be present to evaluate anything in a Lambda.

Actually, if we were to rewrite anything, it would be easier to rewrite LambdaFunctions to be CronoFunctions; the LambdaFunction run method inside the interpreter is small and using only static, public members of the Interpreter class. Is there any reason why we should combine them though?