You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XGo now supports Auto Lambda: classfile commands explicitly opted in through gox.mod can use a trailing block as the final lambda argument without the => boilerplate. For example, onStart { ... } and times 3 { ... } are shorter, equivalent spellings of the existing explicit-lambda forms.
For applicable Builder/SPX commands, this is a clearer and more approachable style for users writing game code. Builder should guide users toward it rather than continuing to foreground the more verbose spelling.
Scope
Adopt Auto Lambda as the preferred example style wherever the command and argument count have been enabled for it.
Update Builder-maintained API-reference examples and code snippets.
Update editor completion snippets and related code-generation templates.
Ensure Copilot understands Auto Lambda, uses it in generated examples when applicable, and encourages the style in its guidance.
Audit relevant documentation, tutorials, and built-in skills/prompts for examples that should be migrated.
Constraints
Auto Lambda is classfile- and command-specific. Do not suggest it for commands that are not explicitly enabled, or in ordinary non-classfile XGo source.
The existing explicit => syntax remains valid and must continue to be supported.
Background
XGo now supports Auto Lambda: classfile commands explicitly opted in through
gox.modcan use a trailing block as the final lambda argument without the=>boilerplate. For example,onStart { ... }andtimes 3 { ... }are shorter, equivalent spellings of the existing explicit-lambda forms.For applicable Builder/SPX commands, this is a clearer and more approachable style for users writing game code. Builder should guide users toward it rather than continuing to foreground the more verbose spelling.
Scope
Adopt Auto Lambda as the preferred example style wherever the command and argument count have been enabled for it.
Constraints
=>syntax remains valid and must continue to be supported.Acceptance criteria