"Neal Ford talks about the tendency of having multiple languages running on one of the two major platforms existing today: Java and .NET. He also presents the advantages offered by Ruby compared to static languages like Java or C#."
"But in Java we don't have pointers, and so it doesn't make any sense to have 0 based numbering in Java, we should have 1 based numbering, but they wanted that backward compatibility with C, so now we are left with that baggage."
I guess he doesn't actually work with numbers much.
What he's talking about is doing pointer math to walk over a collection/array. We (at least I) don't have to do that in Java so a zero-based number scheme doesn't make a whole lot of sense. He even mentions it makes total sense in C.
Don't know how much more clear he could be on that point.
Comments
zynasis replied ago:
dont waste your time.
this guy has nothing important to say
Ricky Clarkson replied ago:
Wow.
"But in Java we don't have pointers, and so it doesn't make any sense to have 0 based numbering in Java, we should have 1 based numbering, but they wanted that backward compatibility with C, so now we are left with that baggage."
I guess he doesn't actually work with numbers much.
phayte replied ago:
Wow.
What he's talking about is doing pointer math to walk over a collection/array. We (at least I) don't have to do that in Java so a zero-based number scheme doesn't make a whole lot of sense. He even mentions it makes total sense in C.
Don't know how much more clear he could be on that point.
behrangsa replied ago:
How were you iterating over an array in pre Java 5 days?
phayte replied ago:
I don't know I just used collections.
Voters For This Link (10)
Voters Against This Link (7)