Chris Lattner via swift-evolution <swift-evolution@...> writes:
I think there's an edge case that needs consideration: when there's zero
expected arguments and the '_' parameter is used:
let f: () -> Void = { _ in }
According to the proposal, this is syntactically incorrect ( 0 != 1 ). But it
is legal now since '_' matches up with the empty tuple. Is there value to keep
it legal?
Either way, this may remain an implementation detail. But it might be
beneficial to make it explicit in the proposal.
- Daniel
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution