18 messages in net.php.lists.internalsRe: [PHP-DEV] [PATCH] Scalar type hin...
FromSent OnAttachments
Hannes MagnussonNov 3, 2006 10:00 am.txt
PierreNov 3, 2006 10:39 am 
Marcus BoergerNov 3, 2006 10:46 am 
Ron KorvingNov 3, 2006 10:48 am 
Ilia AlshanetskyNov 3, 2006 11:06 am 
PierreNov 3, 2006 11:12 am 
Zeev SuraskiNov 3, 2006 12:34 pm 
Brian MoonNov 3, 2006 2:45 pm 
Richard LynchNov 6, 2006 12:18 pm 
Markus FischerNov 6, 2006 11:00 pm 
Richard QuadlingNov 7, 2006 1:26 am 
Ron KorvingNov 7, 2006 2:19 am 
Richard QuadlingNov 7, 2006 2:39 am 
Christian SchneiderNov 7, 2006 6:45 am 
Richard QuadlingNov 7, 2006 7:33 am 
Richard LynchNov 7, 2006 10:45 am 
Richard QuadlingNov 8, 2006 1:37 am 
Derick RethansNov 15, 2006 12:19 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [PHP-DEV] [PATCH] Scalar type hinting ;)Actions...
From:Ron Korving (r.ko@xit.nl)
Date:Nov 3, 2006 10:48:46 am
List:net.php.lists.internals

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" <pier@gmail.com> wrote in message news:fe05@mail.gmail.com...

Hello,

On 11/3/06, Hannes Magnusson <hann@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 :)