Re: [RFC] [VOTE] Short Closures

From: Date: Fri, 02 Oct 2015 19:33:00 +0000
Subject: Re: [RFC] [VOTE] Short Closures
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-88648@lists.php.net to get a copy of this message
Den 2015-10-02 kl. 18:50, skrev Sara Golemon:
On Mon, Sep 28, 2015 at 2:29 PM, Björn Larsson <bjorn.x.larsson@telia.com> wrote:
... or if someday in the future comparison operator without type juggling is needed.
You just blew my mind. Trying to imagine where strict greater-than-or-equal would be used, and more to the point: What you'd make strict grater than look like. >>>? Nope, you'd have heredoc conflict on strict-less than <<<. -Sara Glad I managed to do that :) What I had in mind was strings
compared with int, like: "2 horses" > 1. And yes, syntax is a bit blocked... Leaves the options, >==, <== or >>=, <<=. But I don't like the last ones. One might also consider extending the spaceship operator to <==> for strict comparison. I don't have a strong opinion on relevant use cases for this, so I leave it at that. /Cheers //Björn/ PS Think I blew my own mind a little too ;)

« previous php.internals (#88648) next »