Are regex character class set operations (subtraction, intersection) worth the parsing complexity?

2007-12-22 Thread Steve
C-style syntax is hard to parse in general, but regex literals can be particularly tricky. However, many kinds of tools (syntax highlighters, minifiers, etc.) need to parse them accurately, but unfortunately most such ECMAScript-based tools don't (I could start naming high-profile tools with ed

Re: super.apply(this, arguments)

2007-12-22 Thread Nathan de Vries
On 21/12/2007, at 11:56 PM, P T Withington wrote: > Cute! So ... is the 'spread' operator that spreads an array of > arguments into a parameter list. Sounds similar to the splat operator of Ruby: def foo(first, second, *rest) puts first, second, rest.inspect end foo(1,2)

Re: How complex can a parameter default expression be?

2007-12-22 Thread Dave Herman
That seems like an unnecessary restriction, no? Since argument evaluation is already restricted to left-to-right, we could allow default-expressions to refer to earlier arguments without too much trouble, unless I'm missing something obvious. Dave Brendan Eich wrote: > On Dec 21, 2007, at 4:53