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

Add append and prepend operators to the tuple syntax #262

Merged
merged 5 commits into from
Nov 3, 2021

Conversation

danicheg
Copy link
Member

The notation of that operators is taken from Scala 3 Tuple methods:
*: — stands for prepend https://github.com/lampepfl/dotty/blob/master/library/src/scala/Tuple.scala#L32
:* — stands for append https://github.com/lampepfl/dotty/blob/master/library/src/scala/Tuple.scala#L26
It'll allow smooth migration on Scala 3 by simply deleting the mouse.tuple._ import.

@danicheg
Copy link
Member Author

danicheg commented Nov 2, 2021

@benhutchison it'll be great if you can check this. The implementation is plain as a whole tuple syntax.

@danicheg danicheg merged commit 1a4c83d into main Nov 3, 2021
@danicheg danicheg deleted the append-prepend-tuple branch November 3, 2021 13:01
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

2 participants