Update: Joe Groff responds: “Both syntaxes mean the same thing; there are no bare scopes in Swift.”
Tom Davie points out that there are syntactic ambiguities if you don’t force it:
f() { }
versus
f() { }
One means “call f with this lambda as its last argument”. The other means “call f, then open a scope.”
Comments are closed.