3 ms·
No, @decorator takes care of it - http://funcy.readthedocs.org/en/latest/decorators.html http://funcy.readthedocs.org/en/latest/decorators.html
by Suor 13y ago
No, @decorator takes care of it - http://funcy.readthedocs.org/en/latest/decorators.html http://funcy.readthedocs.org/en/latest/decorators.html
- abecedarius 13y agoOK, cool. Some feedback: I still don't understand what your @decorator does, after looking over that page, then finding the source code and finding it to call other functions with no doc comments, which call other functions with no doc comments, etc.; after about 3 levels I gave up, not interested enough. This on top of the blog post including it with no explanation. I've seen a @decorator function defined by Peter Norvig before, but it only propagated metadata, it didn't change the usual functionality of its argument.
- Suor 13y agoOh, I probably should spend some time clarifying the docs. But basically it just helps avoiding nesting functions, a common boilerplate when writing decorators.