Posted by David Haynes on 06/25/06 02:31
Jerry Stuckle wrote:
> PHP does have some polymorphic-like abilities, but that's because of the
> untyped nature of the variables.
>
> PHP is getting better in it's OO aspects, but I doubt it will ever be
> quite like Java. There's just a basic difference between languages with
> typed and untyped variables.
I was thinking about this the other day and it may not be all that
difficult to add it.
Consider that you can already type the arguments to the constructor.
Given this, it would not be all that hard to derive a typed signature
which could then be applied.
-david-
Navigation:
[Reply to this message]
|