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
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.
I agree with you that cross-links are desireable when possible. Unfortunately, that <guard expression> appears in a code block, so it can't link to a section. Everything after the "match" header is meant to be read in order, so I'm not too worried about leaving it unlinked.
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:
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)
The text was updated successfully, but these errors were encountered: