jashkenas/coffee-script — Issue #1760: Inconsistent behavior when there is a anonymous function parameter among multiline parameters
Author: larme
Created: 2011-10-09 12:35:14+00:00
State: open

Assuming that we have a function `af` defined as below:

af = (a, b, f) ->
f(a, b)

Now if we call funciton `af` in the following way:

af(1, 2, (a, b) ->
a*b)

or

af 1,
2,
(a, b) ->
a*b

then everything works OK. However, if use:

af(1,
2,
(a, b) ->
a*b)

then CoffeeScript will complain there are too many )

It looks very inconsistent for me.