Re:Why data scientists should start learning Swift
by crangos on Thursday April 26, 2018 @05:17PM
(#16935887)
That would be defining it as a time span and using the time since start as index.
Which to me is one step away from using the timepoint as the index iteself (zero as start), verus (1 year from zero).
How would you index the time before the first birthday?
At age 0, you have no elements in your array of years. So the first year is also element 1.
If you want code to reflect the way you've done counting and arithmetic your whole life, you'd want it to start at 1.