Commits

John McCall committed d559794e737
Introduce a new kind of sugar, ParenType. A tuple with one anonymous member is actually one of these. A func decl is curried over all of its parameter clauses, as long as they're written without parentheses. So the body of a func is the body of the "most curried" function: func foo(x:int) -> (y:int) -> int { // This is the body of the function that takes 'y'. // It returns an int. } func bar(x:int) -> ((y:int) -> int) { // This is the body of the function that takes 'x'. // It returns a functon of type (y:int) -> int. } Swift SVN r993