Y
Hacker News
new
|
ask
|
show
|
jobs
by
bilalhusain
5407 days ago
it doesn't conflict with the prototype operator?
1 comments
dherman
5407 days ago
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
link
To quote Jeremy Ashkenas's JSConf talk on forking CoffeeScript: "when in doubt, cheat." ;-P