Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As always, the last word on this topic:

"Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration." -- Stan Kelly-Bootle



One student group at the University of Aalborg designed a language which, among other things, allowed array indexes to be floating point numbers.

So yeah, the array would start at 0,5.


I bet it wasn't an array at all, but a hashtable.


It was, but they did convert it to an integer on the implementation sides so 0.2 and 0.3535 would be the same element.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: