Skip to content

Small compiler and scala-library deprecations #304

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

Merged
merged 4 commits into from
Apr 24, 2019

Conversation

ashawley
Copy link
Member

  • The procedure syntax is deprecated
  • Method + in class Char is deprecated
  • Passing array to a varargs method is deprecated
  • Predef.tuple2ToZippedOps is deprecated

Instead, add `: Unit =` to explicitly declare return type.
Adding a number and a String is deprecated.
Use the string interpolation `s"$num$str"`
This is deprecated (since 2.13.0) and will result in a defensive copy;
Use the more efficient non-copying ArraySeq.unsafeWrapArray or an
explicit toIndexedSeq call
Will need to use xs.zip(ys) in scala-xml, instead.
@ashawley ashawley force-pushed the more-deprecations branch from 934414e to ec593f0 Compare April 24, 2019 01:29
@ashawley ashawley merged commit 0961c77 into scala:master Apr 24, 2019
@ashawley ashawley deleted the more-deprecations branch April 24, 2019 01:55
@ashawley ashawley added this to the 2.0 milestone Jun 27, 2019
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.

2 participants