3 ms·
Arrays will be supported using one of these forms: '(1 2 3) => [1, 2, 3] ([] 1 2 3) [1 2 3] Objects with one of these: ({} a 1 b 2) => {a: 1, b
by evanrmurphy 16y ago
Arrays will be supported using one of these forms:
'(1 2 3) => [1, 2, 3]
([] 1 2 3)
[1 2 3]
Objects with one of these:
({} a 1 b 2) => {a: 1, b: 2}
{a 1 b 2}
There's also the possibility of bringing ideas from David A. Wheeler's sweet-expressions (http://www.dwheeler.com/readable/ http://www.dwheeler.com/readable/). If curly braces are used for object literals, then the curly infix notation could not be borrowed, but there would still be an opportunity to borrow prefixed grouping symbols, e.g. f(x), and significant indentation:
$("#something").click(function()
alert("I was clicked!"))
=> $("#something").click(function() {
alert("I was clicked!");
});