Delegates vs closures
They ultimately do the same thing.
But, sometimes one can be better than the other.
E.g. I had a factory struct, responsible for building UI elements.
One of the UI elements was a UISwitch, and when the switch toggled, I wanted to update the view co...
coderlyn.hashnode.dev1 min read