Re: Add spaceship assignment operator

From: Date: Fri, 25 Mar 2016 12:38:45 +0000
Subject: Re: Add spaceship assignment operator
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-91944@lists.php.net to get a copy of this message
I hope this is a joke. Lets try not to reinvent Perl. Thanks. Dmitry. ________________________________________ From: Nikita Popov <nikita.ppv@gmail.com> Sent: Thursday, March 24, 2016 20:50 To: PHP internals Subject: [PHP-DEV] Add spaceship assignment operator Hi internals! For consistency, we should add a spaceship assignment operator: $a <=>= $b; // same as $a = ($a <=> $b); Additionally, we should add an is-identical assignment operator: $a ==== $b; // same as $a = ($a === $b); Thank you for taking this proposal under consideration. Regards, Nikita

« previous php.internals (#91944) next »