Re:Contracts For CoffeeScript
by bilalhusain on Monday August 29, 2011 @09:33PM
(#2939755)
it doesn't conflict with the prototype operator?
[ Parent
| on HN ]
It's a grammar hack, but IMO an intuitive one: if you have whitespace around the ::, it's a contract annotation; otherwise it's the prototype operator.
To quote Jeremy Ashkenas's JSConf talk on forking CoffeeScript: "when in doubt, cheat." ;-P