Re: [PATCH] Scalar type hinting ;)

From: Date: Fri, 03 Nov 2006 18:46:49 +0000
Subject: Re: [PATCH] Scalar type hinting ;)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-26304@lists.php.net to get a copy of this message
Hello Pierre, i think it would only make sense if the automatic type conversion is correctly supported but then why use it at all? That by the way is the reason we declined it in the past several times. best regards marcus Friday, November 3, 2006, 7:39:41 PM, you wrote: > Hello, > On 11/3/06, Hannes Magnusson <hannes.magnusson@gmail.com> wrote: >> Hello all! >> >> Attached is a patch (against 5_2) to allow scalar type hinting \o/ >> >> I realize that maaany will be against it so I won't be pushing it (a >> lot), just wanted the patch archived somewhere :) > -1 unless we add a "strongly typed" mode in php and allow scalar type > hinting only in this mode. But thinking about php raising errors when > I pass string("1") instead of int(1 )is not really what I consisder as > a nice addition :) > --Pierre Best regards, Marcus

« previous php.internals (#26304) next »