Re: AW: AW: [PHP-DEV] Method overloading by method signature
| From: | Christian Schneider | Date: | Tue, 16 Oct 2007 10:32:23 +0000 |
| Subject: | Re: AW: AW: [PHP-DEV] Method overloading by method signature | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32811@lists.php.net to get a copy of this message | ||
Hans Moog wrote:
> And if you have more than one parameter you will name it
> methodFromStringIntegerSampleClassBoolean ?!?
No, I would rethink my interface.
> And how would you do the same for constructors ?!? Create a
> initWithStringIntegerSampleClassBoolean method which has to be called
> after object creation ?!?
No, I would either use factory methods or the OO approach I outlined in
my previous message.
But let's agree that we fundamentally disagree on style. I think you're
using the wrong language but that's just me....
Over and out,
- Chris