3 ms·
To be fair, having the comma on the same indentation as the enclosing function call doesn't follow the standard multiline list formatting in comma-last JS.
by lowboy 13y ago
To be fair, having the comma on the same indentation as the enclosing function call doesn't follow the standard multiline list formatting in comma-last JS.
- jashkenas 13y agoTo be fair, that style works just fine as well, if you prefer it. request url, ((response) -> handle response), (error) -> handle error
- lowboy 13y agoBut then you get into do-you-don't-you with parentheses, which I find is a sticking point for some people when they try CS. I prefer your first example, personally.