Skip to content

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

Merged
AbnormalPoof merged 1 commit intoFunkinCrew:experimentalfrom
Starexify:single-expr-funcs
Mar 23, 2026
Merged

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

Conversation

@Starexify
Copy link
Copy Markdown

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
Copy Markdown
Author

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

image

@AbnormalPoof AbnormalPoof merged commit 4505703 into FunkinCrew:experimental Mar 23, 2026
@Starexify Starexify deleted the single-expr-funcs branch March 23, 2026 23:36
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.

2 participants