Erlang is the first language I come across to give true for nil> 0.
What is the history of this decision?
Other languages seem to behave differently.
Python:
None > 0
JavaScript:
null > 0
// false
Ruby:
nil > 0
NoMethodError: undefined method `>' for nil:NilClass
source
share