Alex Rivera | Logout

What's wrong with JavaScript's regular expression notation?

Asked 2010-06-20T06:35:19.090
11

I was reading Douglas Crockford's web page, JavaScript: The World's Most Misunderstood Programming Language, and I couldn't help but notice that, under Design Errors, he mentions "the notation for literal regular expressions." What exactly is he talking about? What's wrong with JavaScript's notation for regular expressions, and why?

Edit
Report

1 Answer

0

He really isn't very clear on what he means by semicolon insertion being a mistake. Perhaps he means semicolons as statement delimiters. If that's the case, I disagree. Without semicolons code obfuscators/minifiers don't run on your code.

answered 2011-01-02T08:22:00.143

Your Answer