News for hackers. Stuff that matters.
Re:Some Insights from a Julia Developer by dnautics on Saturday October 14, 2017 @11:18PM (#15475707)
Enumeration should generally begin at 1. In common language, you don't say "this person won the 0th place trophy", you say "this person won the 1st place trophy". It's address offsetting that should begin at 0.

C strongly encourages you to think of arrays as simply address+offset pointers, so it absolutely should start with 0.

Re:Some Insights from a Julia Developer by Bromskloss on Saturday October 14, 2017 @11:38PM (#15475755)
> you don't say "this person won the 0th place trophy"

I think it would make sense to say it. The reason I don't is that people around me would misunderstand me if I did. (Around some people, it works, though!)

Re:Some Insights from a Julia Developer by goatlover on Sunday October 15, 2017 @12:41AM (#15475918)
If some told me they got the "0th place trophy", I would take that to be a colorful way of saying they didn't win anything, as 0 means nothing, or the absence of trophies, in this case.
Re:Some Insights from a Julia Developer by Bromskloss on Sunday October 15, 2017 @01:19AM (#15476023)
That's just an artefact of being used to a certain way, isn't it? For me, it's about finding fundamental reasons for one convention or another, not about the practicalities.
Re:Some Insights from a Julia Developer by goatlover on Sunday October 15, 2017 @01:52AM (#15476085)
The reason for not starting at zero for enumeration is that zero means a lack of things to count or list. Therefore, we should start with the one, since that's the first number where we would have reason to enumerate.
Re:Some Insights from a Julia Developer by dnautics on Monday October 16, 2017 @04:00AM (#15481577)
Why not say someone won the -1th place trophy? Where does it start?