by wmil · 12y ago · 0 comments
request(url, (response) ->
handle response
, (error) ->
handle error
)
request(url,
(response) ->
handle response
(error) ->
handle error
)
request(url
(response) ->
handle response
(error) ->
handle error
)
request url, \
(response) ->
handle response
,
(error) ->
handle error
request url, (response) ->
handle response
,
(error) ->
handle error
It's very reasonable for a JS developer to be confused when seeing those.It's just syntax, people.
The principle argument against whitespace significant languages is separation of concerns. Punctuation only for syntax and whitespace only for formatting.
That said the benefits of CoffeeScript still outweigh the tradeoffs for me.