Skip to content

[ENHANCEMENT] Allow single-expression (braceless) functions to be parsed.#380

Open
Starexify wants to merge 1 commit intoFunkinCrew:experimentalfrom
Starexify:single-expr-funcs
Open

[ENHANCEMENT] Allow single-expression (braceless) functions to be parsed.#380
Starexify wants to merge 1 commit intoFunkinCrew:experimentalfrom
Starexify:single-expr-funcs

Conversation

@Starexify
Copy link

Linked Issues

Description

This PR allows single-expression (braceless) functions to be parsed and not throw errors.
All with a one-liner.

Screenshot

image

Note: Local functions such as lambda() in this case, worked before this change, module scoped functions didn't

@Starexify
Copy link
Author

Also here is a tweak that won't work in haxe (the 2nd function):

image

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.

1 participant