Re: [RFC] Abstract final classes

From: Date: Thu, 27 Nov 2014 13:14:16 +0000
Subject: Re: [RFC] Abstract final classes
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-79228@lists.php.net to get a copy of this message
guilhermeblanco@gmail.com wrote on 27/11/2014 03:47:
I worked on an implementation of a somehow controversial concept that exists in hack and C#: abstract final classes. https://wiki.php.net/rfc/abstract_final_class
The explanation of what exactly has been implemented could perhaps be expanded:
Change language scanner to accept abstract final class constructor, and subsequently restricting to only static members.
Does this mean that the following will be flagged as invalid? If so, what error message will be raised? abstract final class Foo {
    abstract public function doTheImpossible();
} This class is technically valid as an abstract class, but the addition of the "final" keyword makes the abstract method declaration completely meaningless, since it can never be implemented. Regards, -- Rowan Collins [IMSoP]

« previous php.internals (#79228) next »