4 ms·
The number 0 is interesting in the sense that it is actually a comparatively late and abstract invention. The natural numbers are also mathematically defined as
by eska 3y ago
The number 0 is interesting in the sense that it is actually a comparatively late and abstract invention. The natural numbers are also mathematically defined as either including or excluding 0 depending on the author.
That said the issue is really in-band signaling. “I already have this data type which I don’t fully use, let’s use one of the unused values to represent something completely unrelated..”
- eru 3y agoYes, in-band signalling is error-prone. If you want to do it properly, you better have good language support for it. (Eg dependent types might help?)