Re: [RFC] Permit trailing whitespace in numeric strings
| From: | Benjamin Morel | Date: | Wed, 27 Mar 2019 15:31:19 +0000 |
| Subject: | Re: [RFC] Permit trailing whitespace in numeric strings | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104969@lists.php.net to get a copy of this message | ||
> I was certainly not clear enough. I was thinking of basic handling of
numeric values, including arithmetic operations *and* comparison operations..
I would be interested to have a real-life use case of when the current
number comparison capabilities of PHP make more sense than those, borrowed
from JS, suggested below?
Ben
On Wed, 27 Mar 2019 at 16:21, Claude Pache <claude.pache@gmail.com> wrote:
>
>
> Le 27 mars 2019 à 16:14, Benjamin Morel <benjamin.morel@gmail.com> a
> écrit :
>
>
> Sure, PHP has the huge advantage here to have a dedicated string
> concatenation operator, removing any ambiguity around the + operator. This
> does not mean that we cannot borrow their semantics for string/number
> *comparison*!
>
>
> I was certainly not clear enough. I was thinking of basic handling of
> numeric values, including arithmetic operations *and* comparison operations.
>
> —Claude
>
>