Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		- 
				
				
740026938yThink of all the funny issues arising from the limited precision of the floating point indices. At least you wouldn't have to round first inside a for loop. In most cases. Probably. I think. - 
				
				you are too late for that, JavaScript already has this. Try
var a = [ ];
a[0.5] = 1;
console.log(a[0.5]); - 
				
				.5 seems to be an issue, so let's go in the middle and let the programmer choose between 0.25-based arrays and 0.75-based arrays.
 

Should I ever design a programming language, I'll aim for the golden middle course and let arrays start at 0.5.
joke/meme
let pointer arithmetic be fun again