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

Keys for :or should be locally bound, not keywords or qualified symbols #1495

Closed
kennyjwilli opened this issue Aug 19, 2016 · 0 comments
Closed
Labels
released Marks issues which have had the fixes released in a stable build
Milestone

Comments

@kennyjwilli
Copy link

bar is marked as cannot be resolved in this example:

(let [{:keys [foo/bar]
       :or   {bar 1}} {}]
  bar)

Previously you could get around this by doing:

(let [{:keys [foo/bar]
       :or   {foo/bar [1]}} {}]
  bar)

However that behavior was accidental and broken. It is removed from clojure 1.9.0. Per Alex Miller:

the keys of the :or should always be the symbols to bind locally (not keywords or qualified symbols)

@cursive-ide cursive-ide added this to the 1.4.0-eap2 milestone Aug 19, 2016
@cursive-ide cursive-ide added the released Marks issues which have had the fixes released in a stable build label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Marks issues which have had the fixes released in a stable build
Projects
None yet
Development

No branches or pull requests

2 participants