Closed silkentrance closed 8 years ago
FWIW, I achieve this in one of my modules by defining the properties on my class's prototype, (a) as it's more efficient, and (b) so you don't have to modify the native Function prototype.
And this works great with Codo's @property
support.
So if I'm getting it right you just want to add another possible syntax for properties?
Since I have abandoned coffeescript in favour of babel/es6 I am closing this.
Hi, for my current project I need to declare readonly properties using Object.defineProperty or variations thereof, e.g. @property "prop", ... during construction of the class instance.
At the time being, codo will ignore such property declarations, along with any documentation associated with these nodes.
To cut things short, I am currently working on a "patch" that would allow you to
This, of course, requires users to declare something like this in order to make use of it
What do you think of this. Is it of any use or even a requirement for codo?