Re: SPL development interest

From: Date: Mon, 18 May 2020 22:10:59 +0000
Subject: Re: SPL development interest
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-110207@lists.php.net to get a copy of this message
In my opinion, another key takeaway: inheritance as a code reuse mechanism can really bite you. SplStack extends SplDoublyLinkedList and this exposes a bunch of methods on a stack that don't make any sense. It also means there are constraints on how well you can optimize the stack, because you have these methods that don't make sense on a stack that you _must_ support because some poor bloke somewhere actually used them (may God have mercy on them).

« previous php.internals (#110207) next »