-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add section on dropping DelayedInit #2583
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
Conversation
for benchmarking! Also, if you want to access the command line arguments, | ||
you need to use an explicit `main` method for that. | ||
|
||
object Hello extends App { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this example, is there any point in doing extends App
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, good catch.
See also #559 which lead to the creation |
#559 does not seem to be an issue anymore, at least not for simple cases where we do not access |
Thanks @smarter I opened scalacenter/scalafix#174 to handle the cases when |
We can't really remove it because it comes from scala-library, and we don't recompile scala-library currently in dotty, we use the one from 2.11.11 as-is. |
I see, that makes sense @smarter |
Dotty allows this only if `T` is a class type. The change was made because | ||
unrestricted type projection is [unsound](https://github.com/lampepfl/dotty/issues/1050). | ||
|
||
The restriction rule out the [type-level encoding of compbinator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/s/compbinator/combinator
We just added the Scalafix |
No description provided.