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

Local environment is disregarded #1

Open
vemv opened this issue Feb 19, 2019 · 0 comments
Open

Local environment is disregarded #1

vemv opened this issue Feb 19, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@vemv
Copy link
Contributor

vemv commented Feb 19, 2019

The following code will succeed:

(def f inc)

(let [f 2]
  (implement {} some/protocol f))

...but that's counterintuitive. Under the covers, the f local shadows #'f, but the latter is the one that actually gets used.

Ideally, an exception would be thrown if f shadowed an #'f, because it is not intended usage to pass let bindings to implement.

@vemv vemv added the bug Something isn't working label Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant