On Dec 26, 2016, at 2:55 PM, Dave Abrahams via swift-evolution <swift-evolution@swift.org> wrote: >> >> // Move `throws` to the end >> func baz() -> String throws > > I agree that reads much better.
This doesn’t work unless you’re willing to break consistency with function type syntax, or if you’re willing to make function [type/decl] syntax ambiguous. How would you express this, for example? let x : (_ a : Int) throws -> (_ b: Float) throws -> Double it would be ambiguous to move the ‘throws’ keyword to the end of the function type, because you'd get: let x : (_ a : Int) -> (_ b: Float) -> Double throws throws -Chris
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution