Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: why the array index has to start at 0??

by AnomalousMonk (Archbishop)
on Oct 13, 2013 at 07:21 UTC ( [id://1058043]=note: print w/replies, xml ) Need Help??


in reply to Re^3: why the array index has to start at 0??
in thread why the array index has to start at 0??

The first century AD was century zero.

I thought the first century A.D. was century 1, the first year of which was year 1 A.D. (with the year before being 1 B.C.), the concept of "zero" not percolating into European thought until some non-zero number of centuries later. Which is why, twenty centuries later, we are stuck with 2001 being the first year of the twenty-first century.

  • Comment on Re^4: why the array index has to start at 0??

Replies are listed 'Best First'.
Re^5: why the array index has to start at 0??
by LanX (Saint) on Mar 16, 2015 at 00:27 UTC
    > the first year of which was year 1 A.D. (with the year before being 1 B.C.)

    Actually the troubles arising from not having a year 0 are a very good argument for arrays starting with 0. :)

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)

    PS: Je suis Charlie!

Re^5: why the array index has to start at 0??
by ikegami (Patriarch) on Nov 15, 2013 at 18:58 UTC
    oops, fixed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1058043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2026-01-14 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.