riff icon indicating copy to clipboard operation
riff copied to clipboard

`eval()` should return expression result

Open darrylabbate opened this issue 2 years ago • 1 comments

E.g. eval("1+2") should return 3. Currently eval() is only useful for silently executing code.

darrylabbate avatar Oct 31 '22 07:10 darrylabbate

Note: this should be as simple as returning the top of the stack, or $n$ elements from the stack if multivals are ever supported (cc #25).

darrylabbate avatar Dec 19 '22 04:12 darrylabbate