Re: [RFC]Discuss] Syntax for Arrow Functions

From: Date: Mon, 05 Jun 2017 19:09:51 +0000
Subject: Re: [RFC]Discuss] Syntax for Arrow Functions
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-99379@lists.php.net to get a copy of this message
On 6/5/2017 9:03 PM, Ryan Pallas wrote: > However, ($obj) -> $var is valid variable property syntax. > Gosh, we really have support for everything. :D That one is even very important for stuff like (new A)->f(). How about ~> which I at least cannot think of any place it is used at all. ~ in binary negation and the only place we use it (I checked the language parser this time to make sure). I really dislike the ==> idea. One of the main reasons here is to write less and it looks too much like => or even >= which I really don't like. ($a, $b) ==> $a >= $b ($a, $b) ~> $a >= $b -- Richard "Fleshgrinder" Fussenegger

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#99379) next »