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

Add an -Yimplicit-as-given flag to easily test changes in the ecosystem #22580

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Feb 11, 2025

closes #22482
It replaces every implicit definition with given (including implicit classes, which I was surprised to see working), and every implicit parameter clause with using, all in the parser phase.
Symbols and trees unpickled from tasty are unaffected by this flag. Trees generated using the reflection api are unaffected as well.
Pre -source:3.6 context bounds are left as implicits.
All of the above should be easy enough to change, but I didn't really see the purpose for it.

It replaces every implicit definition with `given` (including classes,
which I was surprised to see working), and every implicit parameter
clause with `using`, all in the parser phase. Symbols and trees
unpickled from tasty are unaffected by this flag. Trees generated using
the reflection api are unaffected as well.
@jchyb jchyb force-pushed the add-implicit-as-given-flag branch from 3a7cc12 to f7dc85b Compare February 11, 2025 11:24
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.

Compiler flag to interpret implicit definitions as givens
1 participant