-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
Description
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)
tetrapod00