Another day, another day of Swift. For today’s 100 Days of Swift challenge, I learned a bunch about closures.
For the most part, my experience with closures in Swift and Objective-C has been on the order of “this is a magic incantation, look it up on Fucking Closure Syntax or in a library every time I want to do anything that requires a closure.” It’s the Stack Overflow style of hacking together software. Also, I’ve generally only used closures in the context of asynchronous network calls, where half the battle is just figuring out how to update the UI in an async way without creating a retain loop.
It felt good to be learning how closures work more fundamentally.