News for hackers. Stuff that matters.
Re:Why do arrays start at 0? by joaonmatos on Wednesday August 24, 2022 @09:34PM (#32588285)
Quick complement. Where I’m from (Portugal) we use the literal number 0 for the ground floor.
Re:Why do arrays start at 0? by avereveard on Wednesday August 24, 2022 @11:57PM (#32589310)
In Europe is common for elevator to use zero for ground, even if language/culture has a specific name for it (piano terra/piano rialzato here)
Re:Why do arrays start at 0? by fjkdlsjflkds on Thursday August 25, 2022 @03:08AM (#32590543)
Actually, "rés-do-chão" would be the more common term. Still... in Portugal, the "first floor" is implicitly never the ground floor (but the floor above it), so 0-based indexing is respected (as you suggest).
Re:Why do arrays start at 0? by joaonmatos on Thursday August 25, 2022 @12:49PM (#32596415)
On elevators you don’t see “R/C” unless the elevator is very old, and the same for office building directories or shopping centres. In almost all cases it’s the number zero. OTOH, in countries like Germany you will see the “E” for Erdgeschoss everywhere.