question: will you be re-introducing <class>.name?
tony-kerz opened this issue · comments
tony kerz commented
reference:
jashkenas/coffeescript#2052
ven commented
No, this is a non-writable property
tony kerz commented
ok, how about any way to retrieve the class name of an instance?
ven commented
Add a propertyName
Douglas Armstrong commented
Adding __name__
to the constructor, just like __super__
, would be great for building class hierarchies. Currently, these issue all say to just create our own property in the instance or prototype. Yes, that works, but it becomes tedious and isn't DRY, and so more prone to errors.
Aurélio A. Heckert commented
+1 @drarmstr