[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-internals
Subject:    Re: [PHP-DEV] Re: Signature compatibility: Number of arguments
From:       Levi Morrison <morrison.levi () gmail ! com>
Date:       2013-08-29 15:57:12
Message-ID: CAFMT4No76c6iw+swPtZc8wy=zNKw_QvCQofBC2wqQ3UO2LB3Lw () mail ! gmail ! com
[Download RAW message or body]


I think of the following definition:

function foo($bar = NULL)


To really be two definitions with method overloading:


> function foo()

function foo($bar)


Allowing an inheritor/implementor to choose to not implement the second
signature does not seem logical at all when you think of them this way. I'm
against this this proposal.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic