Nicest way to emulate function decorators?

Thanks José for your reply. At the time, overriding Kernel.@ felt like the only solution, but I’ll revisit this based on your example. Your solution looks elegant – I never knew you could override a function from within the same module.

I’m still wondering how to do multiple decorators without inspecting the module’s AST or doing something with Kernel.@ though, because the putting 2 @decorate module attributes below each other just causes the last one to overwrite he previous value iirc.