> On Nov 12, 2017, at 8:52 PM, Slava Pestov via swift-evolution > <swift-evolution@swift.org> wrote: > > > func fn<T>(param: T) throws -> T where T : Equatable [foo, bar] { … }
+1, potentially adding a context sensitive keyword like “capturing” before it. > I think #4 is ambiguous with array literals unfortunately. > > Perhaps this proposal should be split in two — the ‘self.’/escaping part is > source breaking, and will likely require more discussion. Adding capture > lists to local functions seems like a more straightforward change. +1. -Chris
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution