[swift-evolution] [pitch] Eliminate the "T1 -> T2" syntax, require "(T1) -> T2"

Chris Lattner clattner at apple.com
Wed Apr 20 12:53:25 CDT 2016


> On Apr 20, 2016, at 8:46 AM, BJ Homer <bjhomer at gmail.com> wrote:
> 
> How would this proposal affect curried functions? Would this:
> 
>  func foo(int: Int) -> Int -> String -> String
> 
> become this?
> 
>  func foo(int: Int) -> (((Int) -> String) -> String)

No, it becomes:

func foo(int: Int) -> (Int) -> (String) -> String

-Chris


More information about the swift-evolution mailing list