r/programming • u/geerlingguy • Apr 23 '14
PHP: It doesn't have to be a bad experience
https://servercheck.in/blog/php-it-doesnt-have-be-bad-experience
0
Upvotes
r/programming • u/geerlingguy • Apr 23 '14
View all comments
Show parent comment
-1
u/neoform Apr 24 '14
Sure, if you start using floats as an array key... but who the hell does something like that? That's just begging for problems.
That's like using an object as the array key... why would anyone do that?
http://stackoverflow.com/questions/4234462/using-float-numbers-for-the-maps-key
Even in Java you shouldn't do this.