talideon.com

This is. How it. Should be. Done.

September 6, 2004 at 3:04PM Stoopid JavaScript!

I really like JavaScript, but there’s one thing about the language that irritates the left tit off of me when I’m using it and that’s the behaviour of for..in loops with respect to arrays.

Whereas the sane thing to do with associative arrays is to give the key, the same behaviour doesn’t make sense with regular arrays. What you’d expect is to get the values with regular arrays, but does JS do that? Noooo!

Grr!

Technorati Search Technorati Search Irish Bloggers

Comments

No comments.

Post a comment

All form information is optional, but it’s a good idea to fill in your name and email address if you want me to take your comment seriously.

Spammers, don’t bother posting crap down here. The site is set up so that legitimate search engines (Google, for instance) won’t index pages with comments on them. Posting crud here only means you’re wasting my time and patience. Shoo!

Real names, please. Please include!
Won’t be displayed. Please include!
Displayed, if present.