3 ms·
IMHO, that looks a little bit confusing, javascript or coffeescript are not lisp. But still i will give it a shot.
by jbeja 13y ago
IMHO, that looks a little bit confusing, javascript or coffeescript are not lisp. But still i will give it a shot.
- pygy_ 13y agoIf you miss the parens, we can fix it: ({div, ol, li} = React.DOM) # global exports (div null, (ol null, (for result, index in @results ({a, span} = React.DOM) # local exports (key = (doSomeLookup result, index)) (href = (otherLookup key)) (li {key}, [span(null, "Hello "), a({href}, "world")]))) However, assignments and binary operators are still infix, and comas are needed. =^_^=