thephoeron / LLTHW

Learn Lisp The Hard Way source-code and full book text
MIT License
344 stars 56 forks source link

Loop does not work (under try lisp) #5

Closed malisper closed 10 years ago

malisper commented 10 years ago

I don't know if it is a problem with jscl or something on your end, but loop is completely broken. Something as simple as:

(loop for i from 1 to 10 collect i)

gives "ERROR: Variable `FOR' is unbound."

thephoeron commented 10 years ago

Yeah, it's not implemented yet in JSCL, sadly. As it says in the readme (https://github.com/davazp/jscl): "it would be great if we were just enough compliant to include a loop implementation, a format implementation, or even CLOS or non-CLOS OOP."

davazp commented 10 years ago

Don't hesitate to create a ticket in jscl if you miss a non-implemented feature. It will help to prioritize. I will try hard to get it into jscl.

thephoeron commented 10 years ago

Thanks David. I forked JSCL because I plan to contribute to it---but yes, I'll create the ticket as well.

malisper commented 10 years ago

You (thephoeron) might want to make it clear somewhere that the REPL is not completely compatible with the book.

thephoeron commented 10 years ago

malisper: yeah, that might help, to be more explicit. my original plan was to have a browser repl side-by-side with the text---but then I would have to ignore so much important functionality of the language. that's why I separated the in-browser repl to its own page, as a fun guided tour, with specific examples that I know work.

thephoeron commented 10 years ago

Feature request moved upstream.