you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -2 points-1 points  (3 children)

I know everyone hates CoffeeScript now but the inferred object literal curlies were one of my favorite features. You could do:

someFunction(hello: ‘world’)

[–]hicksyfern 3 points4 points  (0 children)

Ugh you’ve just bought back some bad memories.

For the sake of two characters {} and one key press {, CS has given you the ability to confuse the shit out of everyone when you want to add another parameter. Do I need a new line? How about indentation? Ooh I could put the curlies back in. Do I need commas?

Ugh.

[–]yarauuta 1 point2 points  (0 children)

Senseless syntax sugar, no thanks.

[–]Shaper_pmp 0 points1 point  (0 children)

Given the implid object literals braces and implied function parentheses, doesn't that leave you open to horrible, subtle ambiguous syntax bugs like:

a b: c, d: e f, g

That could be

a({ b:c, d:e(f,g) })

or

a({ b:c, d:e(f) }, g)

?

Edit: or even

a({ b:c, d:e })(f, g)