Closed mwatts15 closed 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?
CronoFunctions have a separate process for evaluation which makes processing them like other functions (using closures and currying) difficult.