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

Preserve symbol metadata (e.g. type hints) #29

Open
setzer22 opened this issue Feb 18, 2020 · 0 comments
Open

Preserve symbol metadata (e.g. type hints) #29

setzer22 opened this issue Feb 18, 2020 · 0 comments

Comments

@setzer22
Copy link

When using some of the arrow macros, like -<>, it seems type hinting does not work. Consider the following two examples:

(as-> "Hello" <> (.toUpperCase ^String <>))

(-<> "Hello" <> (.toUpperCase ^String <>))

While both have the exact same result, running (set! *warn-on-reflection* true) reveals the one using -<> is not preserving the type hint on the generated code, while the one using as-> does.

Is this intended, or you think it could be fixed?

Btw, many thanks for the great library!

@setzer22 setzer22 changed the title Properly preserve symbol metadata (e.g. type hints) Preserve symbol metadata (e.g. type hints) Feb 18, 2020
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