Front page | perl.perl6.language |
Postings from July 2005
July 5, 2005 11:22
Message ID: 20050705182207.GH7720@c4.convolution.nl
Dave Rolsky skribis 2005-07-05 11:41 (-0500):
> >* .month and .wday are one-based. Sunday == 1. Haskell has them as
> > enums which avoids off-by one confusion completely; I made them like
> > I did because that's like humans think of them.
> And yes again!
No. Humans don't USE numbers for week days! So beginning at 1 makes no
sense, except for humans who like creating lists like (undef, <Sunday
Monday ...>). In fact, I would prefer <Saturday Sunday Monday ...> to
not having any 0 :)
Now, for months, yes it does make lots of sense.