On 17/10/2007, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> > suit fully fitted) "catch-up". (Hey when has documentation EVER been
> > ahead of the game!?!).
>
> Always? Otherwise there would be no need for documentation, if
> everything was in the code. Some people even start with writing docs
suit fully fitted) "catch-up". (Hey when has documentation EVER been
ahead of the game!?!).
Always? Otherwise there would be no need for documentation, if
everything was in the code. Some people even start with writing docs and
only then implement the actual code. Of course, it is not always t
ion for each behaviour (although, in this situation there isn't
> that much to be commented).
>
> -Ursprüngliche Nachricht-
> Von: Timm Friebe [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. Oktober 2007 20:47
> An: internals@lists.php.net
> Betreff: Re: [PH
Hi,
On Mon, 2007-10-15 at 20:47 +0200, "Timm Friebe" wrote:
> function xpath(DomDocument $arg) {
> return new DomXPath($arg);
> }
>
> function xpath(XmlTree $arg) {
> return new DomXPath($this->loadXML($arg->getSource(;
> }
>
> function xpath($arg) { // Untyped = d
Hi,
[...]
Later we added type hints to help code readability.
Let me jump at this:
==
function xpath($arg) {
if ($arg instanceof DomDocument) {
return new DomXPath($arg);
} else if ($arg instanceof XmlTree) {
return new DomXPath($this->loadXML($arg->getSource()));
} else i
On 13.10.2007, at 18:46, Hans Moog wrote:
Will method overloading by method signature be implemented in php6 or
even php 5.3?
this feature isnt php .. or rather its a solution to a problem that
does not exist in php .. for good reason.
regards,
Lukas
--
PHP Internals - PHP Runtime Develo
Hello Hans,
Sunday, October 14, 2007, 1:11:35 PM, you wrote:
> I will do so, but i will have to modify it to work with the current php
> version and I wanted to know if everybody hates this way of method
> overloading first.
> Btw: We made some benchmark tests when we decided to use it. And the
Btw: We made some benchmark tests when we decided to use it. And the
method calls were about 0.1 Percent slower. But without having to
check or escape every parameter anymore it even boosts performance
If you think parameter typing would free you from having input
validation, IMHO you are on a
n: Alexey Zakhlestin [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 13. Oktober 2007 22:22
> An: Hans Moog
> Cc: internals@lists.php.net
> Betreff: Re: [PHP-DEV] Method overloading by method signature
> Hans, such overloading would be incompatible with php's dynamic nature
it is better than the '$x = "defaultValue"' kind of way to accept
> > different count and types of parameters because it is MUCH more expressive
> > and intuitive.
> >
> > It wouldn't even break backward compatibility beause it is just
> > &quo
king the variable types manually and then dispatching to the
> right behaviour.
>
> -----Ursprüngliche Nachricht-
> Von: Alexey Zakhlestin [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 13. Oktober 2007 22:22
> An: Hans Moog
> Cc: internals@lists.php.net
> Betreff: Re: [
sprüngliche Nachricht-
> Von: Alexey Zakhlestin [mailto:[EMAIL PROTECTED]
> Gesendet: Samstag, 13. Oktober 2007 22:22
> An: Hans Moog
> Cc: internals@lists.php.net
> Betreff: Re: [PHP-DEV] Method overloading by method signature
>
> Hans, such overloading would be incompatible
Hans, such overloading would be incompatible with php's dynamic nature
As far as I remember, even type-hinting for basic-types (strings,
integers) was rejected
On 10/13/07, Hans Moog <[EMAIL PROTECTED]> wrote:
> Will method overloading by method signature be implemented in php6 or
> even php 5.3?
13 matches
Mail list logo