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

Scala 3 optional braces and smaller related features #2104

Merged
merged 30 commits into from Oct 1, 2020

Conversation

kpbochenek
Copy link
Collaborator

@kpbochenek kpbochenek commented Jul 28, 2020

Changes:

  • significant indentation
  • new control syntax
  • fix open soft kw being treated too much as Keyword
  • question placeholder instead of underscore
  • derives soft keyword
  • adaptation to the new extension methods syntax

EDIT: Reverted derives implementation as @tgodzik requested to avoid breaking compatibility in this PR.


In dotty there is an ongoing migration x: List[_ <: Factory] into x: List[? <: Factory]. Right now both are supported but first one is deprecated and will be removed in future releases. Parsing this is okay, but for now printing it always generates recommended version. Not sure if this is important to print old version if it was parsed?

@kpbochenek kpbochenek requested a review from tgodzik July 28, 2020 07:31
@kpbochenek kpbochenek force-pushed the significant-indent branch 4 times, most recently from 5480a6d to 66253d5 Compare July 28, 2020 09:44
Copy link
Contributor

@kitbellew kitbellew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nb: not a complete review, just some random observations.

Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the great work! I do have some questions, which we can go over together.

@kpbochenek kpbochenek force-pushed the significant-indent branch 5 times, most recently from 4262ffd to 0cfd0ae Compare August 24, 2020 08:40
Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went over the changes once again and I think we can almost merge, but I still have some comments and questions.

prep-dotty.sh Outdated Show resolved Hide resolved
Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some last comments. We can discuss the leftover ones offline.

Copy link
Collaborator

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should be good to merge, it's a hell of a work and it would be awesome to finally support optional braces!

@tgodzik tgodzik changed the title Dotty V3 Scala 3 optional braces and smaller related features Sep 29, 2020
@tgodzik
Copy link
Collaborator

tgodzik commented Sep 29, 2020

mima failure is expected as we changed the extension methods, which was recently updated in Scala 3.

@kitbellew
Copy link
Contributor

I think we should be good to merge, it's a hell of a work and it would be awesome to finally support optional braces!

you guys built a massive new feature, 29 commits and several months! let's hope it works :)

@kpbochenek kpbochenek merged commit 5d92598 into scalameta:master Oct 1, 2020
@tgodzik tgodzik mentioned this pull request Oct 5, 2020
47 tasks
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.

None yet

3 participants