[erlang-questions] Why doesn't Erlang has return statement?

Imants Cekusins imantc@REDACTED
Tue Dec 16 09:59:49 CET 2014


Erlang does not specify void | any() return type. It is probably
easier to expect every statement to return something.

Multiple functions or function with guard clauses usually go along
with multiple case | if statements quite well. If they look really
bad, try to refactor the code.



More information about the erlang-questions mailing list