Hacker News new | ask | show | jobs
by pvorb 1390 days ago
Yes, that was always my theory for why months are 0-based. Back in the days of early Unix, this might have had a tiny performance benefit that was enough for them to choose that implementation.
1 comments

I think that it should be unnecessary. The address of the array could be adjusted at compile-time so that one-based index numbers will be possible.
I think people are overestimating the features of compilers. Today's compilers might struggle with that. 70's compilers even more.