Re: Re: var keyword deprecation/removal
| From: | Adam Tauno Williams | Date: | Sun, 06 Mar 2016 23:17:01 +0000 |
| Subject: | Re: Re: var keyword deprecation/removal | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325445@lists.php.net to get a copy of this message | ||
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.