Making "super" work outside a literal?

Allen Wirfs-Brock allen at
Sun Jun 26 03:05:38 PDT 2011

What property name would be be used in such implicit super calls?  A function doesn't know what property name was used to access it.  Using an implicit property name in a super call would require that every method call implicitly pass the name used to access the property.  This is just like the |here| problem.


On Jun 25, 2011, at 10:12 PM, Brendan Eich wrote:

> On Jun 25, 2011, at 2:10 PM, Brendan Eich wrote:
>> Should we really constrain super calls in methods to be only of the same-named method in the superclass? Conciseness is better but the restriction seems worse. Is it necessary in Ruby or CoffeeScript?
> Consider also that the 'super' proposals allow super.baz where super.baz is a property other than a method. That would not be possible with 'super'-only.
> /be
> _______________________________________________
> es-discuss mailing list
> es-discuss at

More information about the es-discuss mailing list