super ... "#d": -> super ... I think this is by "design" (is that "inconsistency by design" ?), because IIRC this was the reason dynamic keys were removed from coffe...">

super inconstistencies · Issue #193 · satyr/coco (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@vendethiel

Description

@vendethiel

class A b: -> super ... "c": -> super ... "#d": -> super ...

I think this is by "design" (is that "inconsistency by design" ?), because IIRC this was the reason dynamic keys were removed from coffee
Still, I think #d": -> super ... should compile to

prototype["" + d] = function(){ return superclass.prototype["" + d].apply(this, arguments); };

or maybe ?

key$ = "" + d; prototype[key$] = function(){ return superclass.prototype["" + key$].apply(this, arguments); };

Is there a special reason for this ? Is something relying on this ?