Decorators for functions
renyongxu at gmail.com
Thu Oct 22 22:40:17 UTC 2015
My point wasn’t to implement something that allows the decorator function to figure out the difference between class and function. The point is to be able to show the difference in your code, so that it can tell the developer what the code is doing.
Also, the [‘ambient decorator’ ](https://github.com/jonathandturner/brainstorming/blob/master/README.md#c6-ambient-decorators <https://github.com/jonathandturner/brainstorming/blob/master/README.md#c6-ambient-decorators>) Jonathan mentioned is what I think why we should have a new syntax for(decorator that absolutely does not alter the code behavior, only used for optimization, checking or debugging should have different syntax from decorator that alter the code behavior).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss