From 49645532f7767fd362ce41a0b621c953d8c76622 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sat, 11 Sep 2021 18:38:36 +0200 Subject: [PATCH] Remove outdated guideline about `for` range loops being forbidden `for` range loops are now implemented in Godot's data containers, and using them is allowed. --- community/contributing/cpp_usage_guidelines.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/community/contributing/cpp_usage_guidelines.rst b/community/contributing/cpp_usage_guidelines.rst index bed47178604..07ac3dbb118 100644 --- a/community/contributing/cpp_usage_guidelines.rst +++ b/community/contributing/cpp_usage_guidelines.rst @@ -79,12 +79,6 @@ pull requests. We chose to forbid ``auto`` instead of allowing it on a case-by-case basis to avoid having to decide on difficult edge cases. Thank you for your understanding. -``for`` range loop -^^^^^^^^^^^^^^^^^^ - -Don't use the ``for`` range loop syntax (``for (String string : some_array)``). -Use traditional ``for`` loops instead as they're more explicit. - Lambdas ^^^^^^^