Skip to content
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

Respect parameter case by default (i.e. make default reader respect readtable-case of the readtable) #25

Open
joaotavora opened this issue Aug 2, 2020 · 0 comments

Comments

@joaotavora
Copy link
Owner

This is a bug:

CL-USER> (let ((*readtable* (copy-readtable)))
           (setf (readtable-case *readtable*) :invert)
           (mapcar #'read-from-string '("foo" "Foo" "FOO")))
(FOO |Foo| |foo|)
CL-USER> (let ((*readtable* (copy-readtable)))
           (setf (readtable-case *readtable*) :invert)
           (mapcar #'snooze-safe-simple-read::safe-simple-read-from-string
                   '("foo" "Foo" "FOO")))
(FOO FOO FOO)
CL-USER> 

The way to fix this is probably to rewrite snooze-safe-simple-read to take advantage of the normal readtable turning off most of the character functions and preventing interning. This should also simplify a lot of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant