Skip to content

Commit 44ae7cb

Browse files
authored
Modernize foreach docs (#4451)
* Use branches and statement_list for pseudocode * Mention `Traversable` and clarify into wording * Mention array destructuring in `list()` examples Implicitly preferring the use of [] by mentioning it first in the examples as this seems to be the more widely used syntax these days * Deprioritize foreach with references and use short array syntax in examples * Reword to avoid personalization
1 parent 6a3ce2f commit 44ae7cb

File tree

1 file changed

+174
-150
lines changed

1 file changed

+174
-150
lines changed

0 commit comments

Comments
 (0)