[Jprogramming] One-based indices

'Bo Jacoby' via Programming programming at jsoftware.com
Tue Jan 1 07:39:00 UTC 2019


 I do not at all object against zero-origin indexing in J ! 
But I do object against calling  'a'  the "zeroth" element of the list 'abcdefg' . 
'a' is the first element of the list 'abcdefg' .
 'a' may be the element having index zero, but it is not the "zeroth" element of  'abcdefg' . 
Nor is 'b' the first element, even if  ('b'=1{'abcdefg') is true. 'b' is the second element of  'abcdefg' .
Children counting to three say: "one, two, three". That can't and shouldn't be reformed into "zero, one, two". 
The winner of a race is number one - not number zero. 
Zero is a cardinal number, but "zeroth" is neither a cardinal nor an ordinal number. "Zeroth" is an abomination.
We must distinguish between indices and ordinals. 
Thank you!
Bo.
    Den mandag den 31. december 2018 21.19.43 CET skrev Björn Helgason <gosinn at gmail.com>:  
 
  ascenseur/lift/lyfta/elevator/hiss start  sometimes at 0 or 1
the lowest often ground floor as 0 another 1
sometimes skip 0
go straight from the cellar -1 to the ground floor as 1
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm  


More information about the Programming mailing list