3 ms·
In Latin, "null" was not a noun (i.e. substantive), but an adjective applied to nouns. It was used in precisely the same word contexts as the words for "one",
by adrian_b 2y ago
In Latin, "null" was not a noun (i.e. substantive), but an adjective applied to nouns.
It was used in precisely the same word contexts as the words for "one", "two", "three" etc. and in those contexts you could substitute any cardinal numeral. Like any cardinal numeral, it could be used to answer questions about how many things are in a certain place.
So it was really the number "zero".
For the empty set, the most appropriate Latin word was the noun "nihil" ("nothing"), sometimes contracted to "nil" (with long "i") hence the NIL of LISP for the empty list.
So the concepts of "zero" and "empty set" were distinguished in Latin and also in the other known ancient languages.
Some modern programming languages use "null" in a wrong way, when they should have stuck to the NIL of LISP. A null integer or floating-point number denotes the quantity "zero", but a null pointer is not a quantity. A null pointer points to nothing, so it denotes the object NIL.
- badkitty99 2y ago[dead]