๐Ÿ”ธlocal scope

Swift โŸฉ scope โŸฉ global

A local scope is formed at each new level of code orgazination below the global scope. For example, a new typeโ•ฑfunctionโ•ฑcode block forms a new local scope.

Based on where a symbol is declared, it's only accessible from code that is at the same or a lower level of scope.

Last updated