Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:104969 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93737 invoked from network); 27 Mar 2019 18:37:52 -0000 Received: from unknown (HELO mail-it1-f178.google.com) (209.85.166.178) by pb1.pair.com with SMTP; 27 Mar 2019 18:37:52 -0000 Received: by mail-it1-f178.google.com with SMTP id e24so803857itl.1 for ; Wed, 27 Mar 2019 08:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qb3odEUflqyp04i7fuf0TP6SpJ945r4eccXwmmiTXmM=; b=K+0BbUJf9X4ypf2wV0ZXPFMJlKy23bCxddVIWUmA+cYg9wjIJBRM7myZZv+uxDYJny c+I6xqyhbmyJ/XQt98SylREAa0E8fDDxx2orGzPGp3wkaJql+zE8s521vBYhemMsvVqg nVzNHGYqPXBH3fVCiDprZnoKeAWQVWA54S+6XQFJsxlwlJMksliENJ9k4YBNfMCi0DC9 SZVXY28QTOkAsrCVQ6Ji6IIeBUvHkxBjt/ssF/4OtGr4pxkvlXuG86zzgnlNm32rNkKe nriAfg1WInb5ZjUuMtGe5/Ep/yslJefTj7n5uhCUguhP7PNXh2QgtfRjlxBazVS1U34I fkeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qb3odEUflqyp04i7fuf0TP6SpJ945r4eccXwmmiTXmM=; b=UM5oKuqsTJnT+4bWX7CwkDDmyYB7/QYgSgnBA4zGGMnJOsYnztADAWF2ZKnXjZgCXr 2X0zN74jnXM00RSWUdOT8C6IJc6EdGNW3rlka5BuoncMP0WBkOMUB+Jq/OTY5qHQoAmZ vC2p4KrbCxO3YmWkez1MjNL+Yhcnr3+lZgOdr+uLy4rne/fHHFQpXAyYOlPf5Hryvf0u b0p/kDRztSAGGLT0A3kAQbE3emnv3EMEmcOUBL/Ih8zOu3X97pSn0YOUsDpZr8jiesdO HBbuqJGw0EWJ84cgw6BER/mZSminfLmFj2NBq/+JLfMQSn4dEvL4R+IA+dulTc0y1KlM eO4g== X-Gm-Message-State: APjAAAWm+40hVrt6ebMXb74OpBWcxEleMTooX/RcUAb6ibdINyv5oacM 07r9ttlV1jKgeOwZMqUX7uTsgOeZvQnT7K57haU= X-Google-Smtp-Source: APXvYqxkqam4J8NHyNGATWVJkdd88gchyiVP/STo7cfOLWe70pvUoLpY/ApB5qgL+EAvVcTnoBBLc5HdPEWbXCnBv9M= X-Received: by 2002:a02:9a12:: with SMTP id b18mr26781543jal.45.1553700691616; Wed, 27 Mar 2019 08:31:31 -0700 (PDT) MIME-Version: 1.0 References: <6C077569-A049-422B-A4CD-6EE5F8DEC388@gmail.com> <481CB4EE-599D-4CFE-9F5E-8B04EC2BAB35@gmail.com> In-Reply-To: Date: Wed, 27 Mar 2019 16:31:19 +0100 Message-ID: To: Claude Pache Cc: Rowan Collins , PHP Internals Content-Type: multipart/alternative; boundary="000000000000cfa81b05851521e1" Subject: Re: [PHP-DEV] [RFC] Permit trailing whitespace in numeric strings From: benjamin.morel@gmail.com (Benjamin Morel) --000000000000cfa81b05851521e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > 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 wrote: > > > Le 27 mars 2019 =C3=A0 16:14, Benjamin Morel a > =C3=A9crit : > > > Sure, PHP has the huge advantage here to have a dedicated string > concatenation operator, removing any ambiguity around the + operator. Thi= s > 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 operatio= ns. > > =E2=80=94Claude > > --000000000000cfa81b05851521e1--