You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are correct, but I already mentioned that the return value for functions is not supported in this project:
Important: a function in LISP returns the value of the last expression evaluated as the return value, but this is not supported in this simplified LISP version. Instead, to return a value from a function it is required to use the return-from statement explicitly.
I don't remember exactly what was the issue, but at that moment it wasn't easy for me to identify where to put the return value. There was an ambiguity somewhere, especially with recursive functions which can have many return values.
However, this was made just for fun, and I explained in the README the limitations and problems I encountered during the development. If you would like to fix something I'll gladly accept a Pull Request :)
I was just playing with your demo page:
this map to:
the function don't return anything, in lisp function always return last expression like in Ruby, so it have implicit return.
The text was updated successfully, but these errors were encountered: