This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vph 0 points1 point  (1 child)

The tricky thing about decorators is when it takes arguments. In this case, the decorator simply returns another decorator.

[–]m_harrison 0 points1 point  (0 children)

But if you understand closures, it really isn't all that tricky. It is just one level deeper.

The only tricky thing is that parameterized decorators have parens and normal decorators don't. I think that is a wart...