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

[feature request] - Alternate closure syntax #352

Open
nailuj29 opened this issue Apr 10, 2021 · 1 comment
Open

[feature request] - Alternate closure syntax #352

nailuj29 opened this issue Apr 10, 2021 · 1 comment

Comments

@nailuj29
Copy link

It would be really cool if when a closure is the last argument of a function, you can use syntax similar to swift and kotlin:

functionWhichTakesAClosure(1, 2) { arg1, arg2 ->
	return arg1 + arg2
}
@marcobambini
Copy link
Owner

Thanks @nailuj29gaming for the request.
I'll evaluate it.

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

No branches or pull requests

2 participants