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

to-keyword receiving nil returns nil instead of an unreadable keyword #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ldhough
Copy link

@ldhough ldhough commented Mar 16, 2022

Currently if to-keyword takes nil as an argument an unreadable keyword : is returned (the result of calling keyword on an empty string). I don't think this behavior is as useful as just returning nil (harder to compare against), and an unreadable keyword is an effectively invalid result.

https://clojure.org/guides/faq#unreadable_keywords

@jamesaoverton
Copy link
Member

Thank you for this PR. It looks good. I plan to merge it and make a new release, but I will need to find some time for that.

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

Successfully merging this pull request may close these issues.

2 participants