Re: [RFC] Pipe Operator

From: Date: Mon, 02 May 2016 07:56:00 +0000
Subject: Re: [RFC] Pipe Operator
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-93029@lists.php.net to get a copy of this message
On 30/04/16 20:57, Sara Golemon wrote: > On Sat, Apr 30, 2016 at 11:41 AM, <lester@lsces.co.uk> wrote: >> God I hate crap software ... TRYING to reply without top post ... but Samsung is incapable! >> >> What I was trying to comment on was that trapping that no result is returned may be what is >> needed, so handling the empty array rather than a null return just means having to remember what you >> do use :( >> > What follows is a terrible idea and I don't mean to propose it as a > solution, but to spark further conversation: > > $result = getData() > ?> doStuffWith($$) I thought this was the "PHP, stop messing around with my HTML" operator? > :> actOnFailureOf($$); > > Basically, a chaining ternary such that the result of the condition > expression propagates to the true/false expressions. Not really the > same feature at this point, but a similar chaining-friendly take on > the standard ternary. Just thinking out loud... -- Regards, Mike

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