-
Notifications
You must be signed in to change notification settings - Fork 87
Rewrite immutable.Set/Map.+
#53
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
…oad accepting multiple values
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.
Awesome @MasseGuillaume! Do you mind adding some more test cases like the following?
(set + (2, 3)).map(x => x)
set + (2, 3) - 4
Do you see other possible corner cases?
op, | ||
Nil, | ||
List(rhs2) | ||
).toString |
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.
What does toString
do? That looks suspect 😄
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.
It's fine, it will drop any comments. It's the scope of https://github.com/scalacenter/scala-syntax
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.
I was wondering whether toString
was the recommended way to produce scala source code from a tree or if there was a method with a more meaningful name.
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.
I create the structure I want, then I pretty print. I dont want to deal with parenthesis.
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.
Oh, I think it’s .syntax
, right?
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.
exactly, I can use .syntax
.
@julienrf I don't see any corner case. |
Thanks! |
The
+
operation no longer has an overload accepting multiple valuesmotivation:
https://github.com/scala/collection-strawman/wiki/FAQ#what-are-the-breaking-changes
2nd row, breaking change