-
Notifications
You must be signed in to change notification settings - Fork 28
SIP-70 - Flexible Varargs #105
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
base: main
Are you sure you want to change the base?
Conversation
content/flexible-varargs.md
Outdated
``` | ||
|
||
### Javascript | ||
Javascript's expression `...` syntax works identically to this proposal. In Python, you can mix |
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.
Python should be Javascript
On the pattern side, the old gotcha is scala/bug#7623 (which has a lint on Scala 2). That is where two pat vars are satisfied by a single Seq, i.e., there is a kind of misalignment. (The example may temper ambition for patterns.) |
I started to wander if this SIP could help resolve this issue: scala/scala3#18009 mySelectable.foo(args1*)(args2*) should get desugared to something like mySelectable.applyDynamic("foo")(args1*, args2*).asInstanceOf[Foo] which is now illegal, but would be when this SIP gets implemented |
No description provided.