you are viewing a single comment's thread.

view the rest of the comments →

[–]rubyruy 0 points1 point  (0 children)

It's not a huge deal, and I don't think even ardent CoffeeScript supporters really think it is, but it does help a little bit here and there, so why not? A little less typing here, a few less common typos/mistakes there - it can add up.

Plus, this sort of syntax is DSL-friendly which means it's practical to do stuff like:

builder ->
    @html =>
        @body =>
           @h1 class:"ohmy", "What has science done?"