> On May 28, 2016, at 12:13 AM, Patrick Smith via swift-evolution > <[email protected]> wrote: > A different train of thought: could semicolons allow the closure ambiguity to > be resolved that Chris brought up a couple of months ago? e.g. > I imagine it wouldn’t, as the parser would always catch that first ‘{‘ as an > opening brace? Would be nice to solve this if possible too.
No, it doesn’t help. To solve that, we would need to introduce a separator between the condition and the body of the loop (like guard has). I’m optimistic that, in time, we can just make the parser smart enough to handle the existing syntax for the trailing closure case by using lookahead. -Chris _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
