satyr / coco

Unfancy CoffeeScript
http://satyr.github.com/coco/
MIT License
498 stars 48 forks source link

own in #224

Closed edef1c closed 6 years ago

edef1c commented 11 years ago

It'd be nice to have a shortcut for hasOwnProperty. Proposed syntax: own k in o Proposed compilation:

var own$ = {}.hasOwnProperty;
own$.call(o, k);
satyr commented 11 years ago

That syntax doesn't work.

See also: jashkenas/coffee-script#2103

edef1c commented 11 years ago

o has k is fine with me too - just some kind of syntax for this would rock.