Skip to main content
5 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Jan 15, 2012 at 8:40 comment added lvilnis I'm confused, I thought it was common knowledge that the "for..in" construct in javascript is broken... why is this offensive?
Mar 15, 2011 at 20:41 comment added umlcat the foreach with changing references (& operator) is a famous bug...
Oct 16, 2010 at 7:47 comment added Joeri Sebrechts If I have to write extra code to use them safely, they're easier to use wrong in my book. For ... in requires extra checks to make sure you're not iterating over objects from the prototype, and foreach requires you to clean up references afterwards or risk overwriting the last value in the array.
Sep 18, 2010 at 13:37 history answered Joeri Sebrechts CC BY-SA 2.5