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
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)
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