Mastering Swift Closures: Syntax, Scope, and Beyond

How long something will last

Steven Curtis

--

Scope is the visibility of objects (variables or functions perhaps), that is which parts of a program can see or use that object.

If we think about the scope of a gun we might think about what we can see, and what is out of the boundaries of our scope. Within programming we can think of scope in the same way.

Photo by Piotr Wilk on Unsplash

--

--