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

Interpreters shouldn't have default parameters #449

Closed
dcsobral opened this issue Apr 10, 2020 · 1 comment
Closed

Interpreters shouldn't have default parameters #449

dcsobral opened this issue Apr 10, 2020 · 1 comment

Comments

@dcsobral
Copy link
Contributor

Default parameters are implemented as forwarding methods. If they were not present in the algebra but present in the interpreter, they would not be accessible. Since they are present in the algebra, having them on the interpreter will simply override the trait with the same thing (hopefully!).

I actually posed a question about this on twitter, to confirm my intuition. While twitter crowd isn't a particularly reliable source, Odersky himself replied in less than ten minutes stating that default parameters should be final.

@BenFradet
Copy link
Contributor

created #462

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

2 participants