Web lists-archives.com

Re: [PHP] Re: var keyword deprecation/removal




On Mon, 2016-03-07 at 01:00 +0300, Andrey Repin wrote:
> And comparing two strings numerically, even if conversion of a string to
> number changes the content of the string, and explicitly invalidates any
> attempt to get meaningful results, right?

Yes.  Is "9E2444" a string or a number?  Strict typing is virtuous -
when, in any sane configuration, will a code path NOT KNOW what type it
should be using?  Answer: never, that's called a bug.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php