Closed badlogic closed 9 years ago
Declaration syntax, addition to Type() production syntax
Type()
"(" ArgumentList() ")" [: Type()]
Definition syntax
val f = "(" ArgumentList() ")" [: Type()] "->" "{" StatementList() "}"
Define semantics.
Scala maps functioms to classes with a single apply method and one parametric type per argument plus one for the return type. That's quite interesting!
Also see http://stackoverflow.com/a/9738862
Declaration syntax, addition to
Type()
production syntaxDefinition syntax
Define semantics.