Re: Type hinting

From: Date: Thu, 27 May 2010 11:07:48 +0000
Subject: Re: Type hinting
References: 1 2 3 4 5 6 7 8  Groups: php.internals 
Request: Send a blank email to internals+get-48505@lists.php.net to get a copy of this message
On 27.05.2010, at 12:59, Ilia Alshanetsky wrote: > Zeev, > > Auto-conversion does not validate input to the function/method, it merely > obfuscates the "wrong" input by converting it to desired type resulting in a > potentially un-expected value. I must say I am completely against the > auto-conversion hint idea. the current proposal is quote the opposite from obfuscation since it would alert the user if the conversion would imply data loss. regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#48505) next »