[swift-evolution] [pitch] Eliminate the "T1 -> T2" syntax, require "(T1) -> T2"
clattner at apple.com
Sun Apr 24 16:13:07 CDT 2016
On Apr 23, 2016, at 6:01 AM, Haravikk via swift-evolution <swift-evolution at swift.org> wrote:
> While I know it might be a bit strange to have different rules for each side, I think I prefer empty brackets on the left and Void on the right, but in combination with required parenthesis on the left.
FWIW, it *does* make sense for there to be rules on both sides. On the right is a “type” on the left is an “argument list”, which is more general than a type already (e.g. each argument can contain inout, @autoclosure, etc).
More information about the swift-evolution