News for hackers. Stuff that matters.
Re:History of Zero-Based Months? by pvorb on Saturday August 27, 2022 @02:44PM (#32621853)
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.
Re:History of Zero-Based Months? by zzo38computer on Saturday August 27, 2022 @06:55PM (#32624064)
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.
Re:History of Zero-Based Months? by pvorb on Tuesday August 30, 2022 @05:44PM (#32655547)
I think people are overestimating the features of compilers. Today's compilers might struggle with that. 70's compilers even more.