4 ms·
You shouldn't consider offsets ("0-indexed") more valid or right than ordinals ("1-indexed"). Doing so imposes unnecessary restrictions and narrows your scope o
by throwawaymath 8y ago
You shouldn't consider offsets ("0-indexed") more valid or right than ordinals ("1-indexed"). Doing so imposes unnecessary restrictions and narrows your scope of discussion to the programming context instead of broader mathematics. You can come up with any arbitrary case where it alternatively makes sense or doesn't make sense to include 0 in the natural numbers.
If something is a matter of taste, it really doesn't make sense to say one taste is "right" over another. It's more important to define your terms and be consistent for the context you're working in.