🚧 施工中
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)
catch
{}
⛔ 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 )
Statementsarrow-up-right ⟩ do statementarrow-up-right
UI: do { } in Swiftarrow-up-right
catch clause
Last updated 3 years ago