Null object: Difference between revisions
Content added Content deleted
([Erlang] Explain lack of undefined value. Show alternatives.) |
m ([Erlang] Fix atom list.) |
||
Line 274: | Line 274: | ||
# Don't ever allow an undefined return value, and throw an exception instead. |
# Don't ever allow an undefined return value, and throw an exception instead. |
||
# Return an atom: |
# Return an atom: |
||
## undefined* |
|||
## undef |
|||
## null |
|||
## nil |
|||
## none |
|||
* Often used by records as an initial value and the stdlib module. |
* Often used by records as an initial value and the stdlib module. |