[swift-evolution] [Pitch] Improving capturing semantics of local functions

Tino Heth 2th at gmx.de
Sun Nov 12 05:26:56 CST 2017


Imho it’s good to copy the concept of capture lists — but it could be done differently, without polluting the body:
func foo[capture list](parameters) {}
I’m not sure if there are corner cases with subscript-syntax, but in general, I think this approach is nicer.

- Tino


More information about the swift-evolution mailing list