-
Notifications
You must be signed in to change notification settings - Fork 21
Scalafix rewrite(s) for 2.12->2.13 non-collection library changes #11430
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
Comments
I seem to have missed/ignored those PRs, but I would like to point out that i.e.
It's a bit unfortunate that some of these more Scala friendly alternatives would disappear, and then every project needs to factor out the extra boilerplate themselves. |
@Jasper-M Looks like this isn't actually deprecated currently: https://github.com/scala/scala/blob/2.13.x/src/library/scala/sys/package.scala I also agree some of those are worth keeping around. |
I've implemented these in https://github.com/dwijnand/scala-rewrites. @olafurpg any chance I could get you (and/or anyone else with Scalafix expertise) to review it? If the Scala maintainers like it I was thinking I could transfer the repo to the scala org so it can be an official part of the 2.13.0 release. |
@dwijnand I'm happy to review, where is the best place to leave comments? For example, matching against |
@olafurpg 1-n issues and/or 1-n PRs to the repo, if that works for you. Good point about Term.Name. I handle that for EOL, but not everywhere. I'll do that. |
Updated the ticket: The PR that landed didn't add all those deprecations. The original PR did, but the re-submission just removed the already-deprecated code. I'm continuing to progress in the scala-rewrites repo. |
Closing in favour of progress being made and tracked in https://github.com/scala/scala-rewrites. |
Uh oh!
There was an error while loading. Please reload this page.
(Related scala/scala-dev#327 which seems to be about language changes in 2.13)
There are a number of changes in the standard library, to the point I think 2.13 should ship with a Scalafix rewrite for them.
In particular, I'm thinking of scala/scala#5830 (which is a re-submission of scala/scala#5677) which
deprecated a number of things and suggests these replacements:(2019-05-09 edit: No, it didn't. The original PR did, the re-submission just removed the already-deprecated code.)
I argue that deprecations in the standard library affect the entire ecosystem, so the release should come with a (or multiple) rewrites. Not because the migration is hard, but because it's so vastly impacting. I would expect it to be much easier than the collection rewrites.
I optimistically target 2.13.0-RC1 🙂
The text was updated successfully, but these errors were encountered: