Re:Python with Braces
by chewxy on Sunday February 09, 2014 @06:31PM
(#7207978)
Actually, it is. It is very easy to confuse an object literal and a block in Javascript. In fact, in the book I am writing[0], I dedicate an entire chapter to using this ambiguity to write arsehole code. Here's another example[1]
[0] https://leanpub.com/underhandedjavascript or its alternate title: https://leanpub.com/jsinterviewquestions [1] Slide 21 (1-index): https://speakerdeck.com/chewxy/underhanded-javascript-how-to...
EDIT:
For those of you who do not want to click through my self promotional links, try this in your browser: