Skip to content

"when" keyword not listed as a keyword #9786

@MajorGonzo

Description

@MajorGonzo

Godot 4.3

Just found out "when" is a keyword used in match statements (maybe elsewhere?). However, it's not listed on the basics page as a keyword. It's first listed a single time as an example on the match statement section (as far as I found), and then two times on the Patterns Guard section, which should perhaps be renamed Guard Expressions to match the example in match keyword section:

match <expression>:
...
<pattern(s)> when <guard expression>:
...

It should have an entry like "in" in the keyword section. Also, for beginners I think "guard expression" should link to the Patterns Guard/Guard Expressions section.

(https://docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.html)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions