Hi!
> It has not taken long to find situations where this idea starts to
> fall apart. For example, in the case of strpos, I would hope for the
> return value, but in other cases I would want the the original input
> if the output is not false.
A side note - when discussing an idea, it would be g
pretty unfeasible I think!
From: bishop.bett...@gmail.com [bishop.bett...@gmail.com] on behalf of Bishop
Bettini [bis...@php.net]
Sent: 03 November 2016 16:02
To: Antony D'Andrea
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Proposed RFC
On Thu, Nov 3, 20
;
> Yes I have but I would like it to return ($n1/$n2) or whatever this input is,
> without repeating it again.
>
> From: David Rodrigues [david.pro...@gmail.com]
> Sent: 03 November 2016 15:48
> To: Antony D'Andrea
> Cc: internals@lis
On Thu, Nov 3, 2016 at 11:02 AM, Antony D'Andrea <
contac...@antonydandrea.com> wrote:
>
> I would like to propose a new feature that is as clean as this but is a
> slightly different use case. This would require a new operator (up for
> discussion, but an early idea is "?!") For example:
>
>
You have tried the ?: operator?
echo !is_infinite($n1/$n2) ?: 0;
It should returns true or 0, for this case.
2016-11-03 13:02 GMT-02:00 Antony D'Andrea :
> Hi all,
>
> First off, this is my first time e-mailing internals or even thinking about
> submitting RFC. Please forgive me if I fail t