๐Ÿ“˜do

๐Ÿšง ๆ–ฝๅทฅไธญ

Swift โŸฉ statement โŸฉ do

a statement that is used to introduce a new scope and can optionally contain one or more catch clauses, which contain patterns that match against defined error conditions. (similar to curly braces ({}) in C used to delimit a code block)

โ›” error: unlabeled break is only allowed inside a loop or switch, a labeled break is required to exit an if or do. ( ๐Ÿ‘‰ see: for...in vs. forEach )

Last updated