Since the expressions are already in lisp, maybe we can make it use a inferior process for evaluating expressions and getting results, that way we can have the variables in the slime instead of polluting the emacs.
Another thing I noticed is elisp uses integer calculations so (/ 1 2) evals to 0 , while in clisp it evals to 1/2, so if there are integers like that in intermediate steps, we're very likely to get wrong results in direct evaluation in elisp. Or maybe it depends on the version or machine or sth, but at least it happens this way in my computer. Being able to use slime should help with that. And as for output of fractions, we should be able to format it using format variable function (making it if it doesn't exist), or if there's a way making slime output decimals.
Since the expressions are already in lisp, maybe we can make it use a inferior process for evaluating expressions and getting results, that way we can have the variables in the slime instead of polluting the emacs.
Another thing I noticed is elisp uses integer calculations so
(/ 1 2)
evals to 0 , while in clisp it evals to 1/2, so if there are integers like that in intermediate steps, we're very likely to get wrong results in direct evaluation in elisp. Or maybe it depends on the version or machine or sth, but at least it happens this way in my computer. Being able to use slime should help with that. And as for output of fractions, we should be able to format it using format variable function (making it if it doesn't exist), or if there's a way making slime output decimals.