Re: [PATCH] Scalar type hinting ;)

From: Date: Fri, 03 Nov 2006 18:49:09 +0000
Subject: Re: [PATCH] Scalar type hinting ;)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-26305@lists.php.net to get a copy of this message
If you ask me, scaler type hinting should try to do some auto-conversion. That way, the type hints would actually be useful. -- Ron PS: Congrats on rolling out PHP 5.2.0. I sincerely (without sarcasm) hope the manual will be updated soon (e.g. filter extension is still marked experimental and datetime classes have not been documented at all). "Pierre" <pierre.php@gmail.com> wrote in message news:fe05d1540611031039qee11e7aicfe71868aa5d0588@mail.gmail.com... > 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

« previous php.internals (#26305) next »