> On May 28, 2016, at 12:07 PM, Thorsten Seitz <[email protected]> wrote: > > What about requiring `let` before each binding and `case` before each pattern? > > guard case let x = a, case let y = b, let z = c, x == y else { … } > > Now `let z = c` can only be a let-binding and not a pattern matching clause.
Yes, that would be enough to solve the ambiguity. The problem with that is that it eliminates a commonality with var/let declarations, which can declare multiple variables. -Chris _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
