As of now, PHP allows declaring abstract private methods. Does anyone has
any use for it? IMO, it is meaningless and should be disallowed (basically
it just says "this method does not exist and never will") but maybe I am
not seeing some use for it.
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
Stanislav Malyshev wrote:
As of now, PHP allows declaring abstract private methods. Does anyone
has any use for it? IMO, it is meaningless and should be disallowed
(basically it just says "this method does not exist and never will")
but maybe I am not seeing some use for it.
It can be used to reserve a function for future use?
John LeSueur
JL>>It can be used to reserve a function for future use?
I'm not quite understanding this concept - if you can't use it in the
code in no way, why declare it at all?
Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
Sure, except you can't create an instance of a class which contains
abstract methods.
Stanislav Malyshev wrote:
As of now, PHP allows declaring abstract private methods. Does anyone
has any use for it? IMO, it is meaningless and should be disallowed
(basically it just says "this method does not exist and never will")
but maybe I am not seeing some use for it.It can be used to reserve a function for future use?
John LeSueur
Nope, I don't see any use for that.
At 09:29 PM 6/8/2005 +0300, Stanislav Malyshev wrote:
As of now, PHP allows declaring abstract private methods. Does anyone has
any use for it? IMO, it is meaningless and should be disallowed (basically
it just says "this method does not exist and never will") but maybe I am
not seeing some use for it.Stanislav Malyshev, Zend Products Engineer
stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115
Stanislav Malyshev wrote:
As of now, PHP allows declaring abstract private methods. Does anyone
has any use for it?
I do not see a use for this and I think it should be disallowed;
abstract methods only make sense when declared public or protected.
--
Sebastian Bergmann http://www.sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69