-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unlimited number of positional arguments and keyword arguments support in functions and methods. #152
Comments
I like |
Maybe |
I was thinking to use |
Then it's even better, because there's a nice symmetry between variadic arguments and passing variable amounts of args into a function. Like:
|
Those number of stars looking weird to me. Is it possible to use it also for unpacking objects like |
And also |
The 3 |
I like this unpacking syntax from Python and also rest/spread operator from JS. I know developers will love it. |
I am convinced with you proposal of |
Updated the issue description and added list of tasks to perform. |
Next is keyword arguments! |
Is your feature request related to a problem? Please describe.
Often we need to handle unknown amount of arguments in function call. But till now, we don't have any way to handle this behavior.
Describe the solution you'd like
Syntax:
Inspired from Python.
Additional context
Syntax is not final yet. Suggestions are welcome.
Update:
New syntax is now:
...args
(Updated with Add variadic arguments from #152 #153)***kwargs
[...[1,2,3], ...[5,6,7]]
{***{"key": "value"}, ***{"key": "value"}}
The text was updated successfully, but these errors were encountered: