浏览代码

Add bang operator to gdscript style guide (#6828)

Thiago Lages de Alencar 2 年之前
父节点
当前提交
6095b20174
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tutorials/scripting/gdscript/gdscript_styleguide.rst

+ 1 - 0
tutorials/scripting/gdscript/gdscript_styleguide.rst

@@ -414,6 +414,7 @@ Prefer the plain English versions of boolean operators, as they are the most acc
 
 
 - Use ``and`` instead of ``&&``.
 - Use ``and`` instead of ``&&``.
 - Use ``or`` instead of ``||``.
 - Use ``or`` instead of ``||``.
+- Use ``not`` instead of ``!``.
 
 
 You may also use parentheses around boolean operators to clear any ambiguity.
 You may also use parentheses around boolean operators to clear any ambiguity.
 This can make long expressions easier to read.
 This can make long expressions easier to read.