-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Reader::CommonLisp doesn't work as documented #21
Comments
Thanks, I’ll look. I think it’s probably more sensible to have Lisp |
The are both Falsey, so that would be fine. |
My thoughts exactly. The falsiness of Ruby nil means that the Common Lisp ambiguity between nil and false is OK, if not great. |
Thank you for fixing this! For future reference, though, this was probably a breaking change, so I'm not sure it should have been a patch release (although it was a bugfix). BTW, I appreciate this gem so much. I'm using this on a project that I'm translating from Lisp to Ruby, so it's coming in handy for constructing Lisp expressions and parsing Lisp output in my RSpec tests. |
Describe the bug
The README claims that Reader::CommonLisp treats special atoms specially:
However, in practice, Reader::CommonLisp doesn't map Lisp
t
andnil
to Rubytrue
andfalse
; it just treats them like any other atoms and converts them to Ruby symbols:I think this is a bug. Either the documentation or the gem should be updated.
The text was updated successfully, but these errors were encountered: