first draft of mandatory parentheses around function definition param lists -- all tests pass

This commit is contained in:
Jeremy Ashkenas
2010-01-26 00:40:58 -05:00
parent 63b44a2b03
commit 460b3f6d8e
57 changed files with 1396 additions and 1561 deletions

View File

@@ -1,4 +1,4 @@
area: x, y, x1, y1 =>
area: (x, y, x1, y1) =>
(x - x1) * (x - y1)
x: y: 10
@@ -18,14 +18,14 @@ print(area(
# Arguments are turned into arrays.
curried: =>
curried: () =>
print area.apply(this, arguments.concat(20, 20)) is 100
curried 10, 10
# Arguments is not a special keyword -- it can be assigned to:
func: =>
func: () =>
arguments: 25
arguments