Today I realised you can use do { … }
in Swift to create a scope, like using { … }
in C. Useful for tests where you need to be careful not to accidentally use one of several similar variables.
Today I realised you can use do { … }
in Swift to create a scope, like using { … }
in C. Useful for tests where you need to be careful not to accidentally use one of several similar variables.