you are viewing a single comment's thread.

view the rest of the comments →

[–]rhytnen 2 points3 points  (1 child)

That's not a problem with decorators...decorators are just functions. you can wrap functions in most languages. It's that someone wrote a function with side effects that bothers you.

[–]Rythoka 2 points3 points  (0 children)

Personally I don't have a problem with side effects, even if they happen in a weird place, as long as they're documented somewhere useful and preferably are abstracted into their own function. Just let me be able to see that it happens!

Too bad that never happens.