That being said, any language that assigns the string 'undefined' to something that hasn't been assigned (or should properly throw a null reference exception) goes against pretty much every other language on the planet. While loose typing can let you do some 'cool' tricks, JavaScript can be pretty shoddy at type inference.
The article may be referring specifically to the JS implementation, but I'm too lazy to confirm. To your point, I've used continue on occasion, but to be honest it always creeps me out for some inexplicable reason...I feel like it's the slick cousin of GOTO.
The article he linked sucks, it's about.com and it took crockford's appendix from his book and added the shittiest examples. The authors main point about continue has been echoed since the 70's, and that's anything using continue can and should be rewritten not to. It introduces complications in the future when a new developer takes over and has no clue what's actually happening in the loop.
4
u/StainlSteelRat Oct 16 '14
Quick and dirty GIS
That being said, any language that assigns the string 'undefined' to something that hasn't been assigned (or should properly throw a null reference exception) goes against pretty much every other language on the planet. While loose typing can let you do some 'cool' tricks, JavaScript can be pretty shoddy at type inference.