Skip to content

My Perception of CoffeeScript

leongersing.tumblr.com
6 pointspkananen1 comment
On HN

Comments

ISTM the author's "pure javascript" version of the horse/snake example is not solving the same problem as the CoffeeScript one.

In the CS code, the association between the object and it's type of motion (galloping/slithering) is made at construction time (via the implementation of "move" associated with the object), and in the "pure javascript" code it is made at the call site for "move".

This seems like such a fundamental difference that it becomes a little difficult to take the rest of the argument seriously.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.