On 16/03/2021 09:42, Dik Takken wrote:
I guess that using an observer results in scenario 1. This would yield a
confusing debugging experience. At the call site, you cannot see that
the function is decorated. You expect to enter the called function but
the debugger will jump some place else. Even worse when multiple
decorators are stacked.


One thing to note is that this kind of implicit jump already happens a lot with class autoloaders. It is confusing, though.

Regards,

--
Rowan Tommins
[IMSoP]

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to