[Pre-RFC] Support for decorator patterns

From: Date: Tue, 11 Feb 2020 10:14:23 +0000
Subject: [Pre-RFC] Support for decorator patterns
Groups: php.internals 
Request: Send a blank email to internals+get-108455@lists.php.net to get a copy of this message
Hi internals, I'd like to get some feedback on the idea implemented in https://github.com/php/php-src/pull/5168. It provides an easy way to implement decorates, by taking care of forwarding any methods you do not want to override in a type-safe way. See the PR description for details. I've been playing with this thought for a while, and decided to try this out now, because typed properties in PHP 7.4 offer a very nice syntax choice for this feature. Any initial thoughts? Regards, Nikita

« previous php.internals (#108455) next »