Skip to content

GDScript replace SuiteNode::Local::UNDEFINED with nullptr - #123582

Open
HolonProduction wants to merge 1 commit into
godotengine:masterfrom
HolonProduction:what-do-you-mean-undefined
Open

HolonProduction wants to merge 1 commit into
godotengine:masterfrom
HolonProduction:what-do-you-mean-undefined

Conversation

@HolonProduction

Copy link
Copy Markdown
Member

What problem(s) does this PR solve?

  • Requires Fix LocalVector<T>::clear when T has no default constructor #123581

  • Get's rid of the UNDEFINED local type in the GDScript AST which we have been using as invalid default value. In general I want to adopt an "You have something valid or nothing" approach were possible. We currently have "You have something that might be invalid", which is bloating our switch statements with cases that should never happen in practice.

@HolonProduction
HolonProduction force-pushed the what-do-you-mean-undefined branch from dce3276 to fbe5b86 Compare September 22, 2026 09:09
@HolonProduction
HolonProduction marked this pull request as ready for review September 22, 2026 10:02
@HolonProduction
HolonProduction requested a review from a team as a code owner September 22, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant