Re: Built-in decorator attribute?
From: Rowan Tommins Date: Tue, 16 Mar 2021 11:24:40 +0000 Subject: Re: Built-in decorator attribute? References: 1 2 3 4 Groups: php.internals Request: Send a blank email to internals+get-113558@lists.php.net to get a copy of this message
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]
Thread (15 messages)
| « previous | php.internals (#113558) | next » |
|---|