|
|
|
|
|
by atombender
2443 days ago
|
|
Not quite, in ML languages, a function declared like this: let sum a b = a + b
...has the type: float -> float -> float
Same in Haskell.These languages "emulate" multiple arguments through partial function application. OCaml does not use tuples for arguments. |
|
As far as the original sugestion, using '->' (arrow) to denote a return type (like Rust) is nonsense in a functional language and kind of butchering the functional inherited syntax IMHO.