-
-
Notifications
You must be signed in to change notification settings - Fork 97
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 a compact lambda syntax #6614
Comments
This was already mentioned and rejected in the original proposal for lambdas #2431 |
vnen:
|
|
I would prefer |
Closing due to lack of support (see reactions on OP). |
Describe the project you are working on
A city-building game (currently the file manager)
Describe the problem or limitation you are having in your project
The
func()
syntax for a lambda is slightly too verbose, especially compared to JS's() =>
.Describe the feature / enhancement and how it helps to overcome the problem or limitation
This enhancement will add additional syntax for specifying a lambda that is less verbose than the existing syntax.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
If this enhancement will not be used often, can it be worked around with a few lines of script?
Is there a reason why this should be core and not an add-on in the asset library?
As far as I know, it is impossible to modify GDScript syntax with a script or addon.
The text was updated successfully, but these errors were encountered: