Decorators for functions
Yongxu Ren
renyongxu at gmail.com
Thu Oct 22 22:40:17 UTC 2015
Andrea,
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...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20151022/163ff545/attachment.html>
More information about the es-discuss
mailing list