Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[Discussion] 0 indexing -vs- 1 indexing

Name: Sagey McSagerson 2011-04-05 23:03

Discuss: Which is superior and why. Go go go go go

Name: Anonymous 2011-04-05 23:04

0 indexing is superior, reported. MrVacBob, please, listen to my prayers.

Name: Anonymous 2011-04-05 23:09

MrVacBob, please, listen to        MY ANUS

Name: Anonymous 2011-04-05 23:21

>>2 is a faggot

Name: Anonymous 2011-04-05 23:21

Why would anyone in their right mind start counting from 1?

Name: Nambla_dot_org_rules_you 2011-04-05 23:26

Only a fag or an autist would start counting from one.

Name: Anonymous 2011-04-05 23:55

>>5
Because they use Lua.

Name: Anonymous 2011-04-06 0:07

Only a retard would start counting from one. An autist is someone well-versed in the dark arts of programming, and therefore will know that 0-based indexing is the right way of indexing MY ANUS

Name: Anonymous 2011-04-06 0:08

Zero indexing is how actual computers work and is more efficient. Therefore, zero indexing or hit the highway.

Name: Anonymous 2011-04-06 0:11

http://en.wikipedia.org/wiki/Parity_of_zero

Around 53% of people should be harvested for organs.

Name: Anonymous 2011-04-06 1:06

Name: Anonymous 2011-04-06 1:27

Smalltalk  1-based
Come on, even Lisps are 0-based.

Name: Anonymous 2011-04-06 1:42

car and cdr, first and rest, head and tail, T getContentOfFirstPositionOfIndexableObject(Indexable<T> indexableObject) and IndexableObject<T> getIndexableObjectFromTailOfIndexableObject(Indexable<T> IndexableObject)

Name: Anonymous 2011-04-06 4:38

>>13
That's just awful.

Name: Anonymous 2011-04-06 11:26

>>11
Looks like all the ancient languages (COBOL, Lua, Smalltalk, Fortran, P/L1, Matlab, etc), are all 1 based.

What's it all mean Doctor Sussman??

Name: Anonymous 2011-04-06 12:07

>>15
That you should use lists.

Name: Anonymous 2011-04-06 13:07

>>16

OH SNAP

Name: Anonymous 2011-04-06 15:10

>>16
That you should use lisps

Name: Anonymous 2011-04-06 15:21

LISPERS GONNA LISP

Name: Anonymous 2011-04-06 17:55

JEWS GONNA JEW

Name: Anonymous 2011-04-06 19:33

>>10
That was an unexpectedly amusing article.

Name: Anonymous 2011-04-06 19:35

>>10
Oh my.

Name: Anonymous 2011-04-06 19:53

Zero is a mathematical buzzword. There is no zero in reality. No emptiness. No mathematical space.

Name: Anonymous 2011-04-06 19:54

>>23
IHBT

Name: Anonymous 2011-04-06 20:00

>>24
...and no "empty set".

Name: Anonymous 2011-04-06 20:06

From a practical side, indexing from `1` is supperior, because you can use negative indexes to index list from end.


(nth -1 '(a b c))
c

(nth 1 '(1 2 3))
a

Name: Anonymous 2011-04-06 20:30

>>26
(nth 1 '(1 2 3))
a

IHBT.

Name: Anonymous 2011-04-06 21:03

>>27

(define 1 'a)

Name: Anonymous 2011-04-06 21:09

>>26
You can anyway:
>>> [1,2,3][0]
1
>>> [1,2,3][-1]
3

The index at -1 is also the index length - 1, so it makes sense. Also, >>9.

Name: Anonymous 2011-04-06 21:10

>>29
But now it's asymmetric. You can't just negate index to invert order.

Name: Anonymous 2011-04-06 21:12

>>30
My point: `zero` is an error code, not a number. Just like infinity and infinitesimals. You can perfectly replace 0 with NIL, and will work the same.

Name: Anonymous 2011-04-06 21:16

>>31
0 is a number. [spoiler]nan[\spoiler] is not a number.

Name: Anonymous 2011-04-06 21:18

HOLY FUCK my BBCODE has gone down in power in the last couple years. Feels bad man.

Name: Anonymous 2011-04-06 21:19

>>32
/0

Name: Anonymous 2011-04-06 21:21

>>32
NaN
Not a Number
NaN a Number
NaN a NaN

Name: Anonymous 2011-04-06 22:42

GNU's not UNIX
NaN's a Number

Name: Anonymous 2011-04-06 22:53

NaN

Name: Anonymous 2011-04-06 22:53

NaN a NaN

Name: Anonymous 2011-04-06 22:54

NaN a NaN a NaN a NaN

Name: Anonymous 2011-04-06 22:54

NaN a NaN a NaN a NaN a NaN a NaN a NaN a NaN

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List