Software Design/Don't omit function's signature (return type)

From Wikiversity
Jump to navigation Jump to search

In some programming languages, the return type of a function could be omitted (and inferred by the compiler). In others, e. g. Haskell, the function's signature could be omitted entirely.

Why[edit | edit source]

Why not[edit | edit source]