Explorar o código

Minor change to section on for loop syntax

The C-like for loop is specific to languages that wanted to copy C syntax and has nothing to do with static vs dynamic typing. Most new languages do not have it and have a foreach loop over iterators instead, regardless of whether they are statically typed or not.
saolof %!s(int64=4) %!d(string=hai) anos
pai
achega
15bcf71083
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      tutorials/scripting/gdscript/gdscript_advanced.rst

+ 2 - 2
tutorials/scripting/gdscript/gdscript_advanced.rst

@@ -318,7 +318,7 @@ states and quick structs:
 For & while
 -----------
 
-Iterating in some statically typed languages can be quite complex:
+Iterating in C-derived languages can be quite complex:
 
 .. code-block:: cpp
 
@@ -338,7 +338,7 @@ Iterating in some statically typed languages can be quite complex:
         std::cout << *it << std::endl;
     }
 
-This is usually greatly simplified in dynamically typed languages:
+This is usually greatly simplified in modern languages using for loops over iterables:
 
 ::