Hey guys!
Thank you for the great tool!
I'm experimenting a bit with multiple decorators like:
@decorate foo()
@decorate bar()
@decorate baz()
def hello() do
:world
end
Intuitively I expect baz to decorate hello, then bar decorates baz and hello, then, finally foo decorates all of them bar, baz, hello.
But for some reason, there is Enum.reverse here
so the execution is the opposite:
baz decorates
bar, foo, hello.
What is the intention of reversing the order?
And do you recommend applying several decorators?
Thank you!
Hey guys!
Thank you for the great tool!
I'm experimenting a bit with multiple decorators like:
Intuitively I expect
bazto decoratehello, thenbardecoratesbaz and hello, then, finallyfoodecorates all of thembar, baz, hello.But for some reason, there is
Enum.reverseheredecorator/lib/decorator/decorate.ex
Line 127 in 7adc22f
so the execution is the opposite:
bazdecoratesbar, foo, hello.What is the intention of reversing the order?
And do you recommend applying several decorators?
Thank you!