Re: Built-in decorator attribute?
From: Peter Stalman Date: Mon, 15 Mar 2021 01:46:47 +0000 Subject: Re: Built-in decorator attribute? References: 1 2 3 4 Groups: php.internals Request: Send a blank email to internals+get-113528@lists.php.net to get a copy of this message
On Sun, Mar 14, 2021 at 6:34 PM Peter Stalman <sarkedev@gmail.com> wrote: > Would it make sense to have both options? > 6) Multiple decorators on the same function? One problem with the wrapper pattern is that if you have multiple decorators then wouldn't that end up calling the function multiple times? Not so with the before/after. It really depends on the intended behavior. How does Python and others handle this? Thanks, Peter
Thread (15 messages)
| « previous | php.internals (#113528) | next » |
|---|