Most statically-typed languages don't let you evaluate 0 as a boolean.
IMO, 0 is a value, and values should be truthy. 0 being falsy is only a wart from C.
I don't know off the top of my head, but I would assume that yes, zero is truthy in Erlang as well, since Elixir is fully compatible with it.
Most statically-typed languages don't let you evaluate 0 as a boolean.
IMO, 0 is a value, and values should be truthy. 0 being falsy is only a wart from C.