Skip to content

Tweak Seq migration guide #1333

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 1 commit into from
May 23, 2019
Merged

Tweak Seq migration guide #1333

merged 1 commit into from
May 23, 2019

Conversation

dwijnand
Copy link
Member

No description provided.

@dwijnand
Copy link
Member Author

Polling for what names we should use for Seqs: https://www.strawpoll.me/18027945

@adriaanm adriaanm requested a review from szeiger May 21, 2019 12:38
@dwijnand
Copy link
Member Author

LOL

jekyll 3.8.3 | Error:  Liquid syntax error (line 139): Variable '{{{
  * import scala.{ collection => sc }' was not properly terminated with regexp: /\}\}/


If you're making a library intended to be used by other programmers, then using `scala.Seq`, `scala.IndexedSeq`, or vararg is going to be a breaking change in the API semantics. For example, if there was a function `def orderFood(order: Seq[Order]): Seq[Food]`, previously the library user would have been able to pass in an array of `Order`, but it won't work for 2.13.
This also has the effect of making the type of varargs parameters immutable sequences, due to [SLS 6.6][], so in
Copy link
Contributor

Choose a reason for hiding this comment

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

a few issues:

  • change from plural to singular ("These changes require" => "This [...] has")
  • no previous effects were mentioned, so the word "also" is confusing
  • unqualified "this" - "this change" would be a little better (this one is rather nitpicky and mostly channeling my high school english teacher)

Copy link
Member Author

Choose a reason for hiding this comment

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

The only change I didn't apply is the "also" part. Do you think it's not obvious to the reader the immediate impact of changing the alias? We can fix this up still.

@dwijnand dwijnand requested a review from SethTisue May 23, 2019 16:24
@SethTisue SethTisue merged commit be99a26 into scala:master May 23, 2019
@SethTisue
Copy link
Member

this is super. (and, I like the decision to not introduce CSeq/ISeq)

@dwijnand dwijnand deleted the seq-migration branch May 23, 2019 17:25
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.

4 participants