From: Joseph Jones Date: 2015-12-17T21:06:30-07:00 Subject: [ruby-core:72272] [Ruby trunk - Feature #11734] [Closed] Improved ternary operator --56738646_5072367_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 7, 2015 at 00:52:= 27 MST, ko1=40atdot.net wrote:Issue =2311734 has been updated by Koichi S= asada.Status changed from Open to Closed---------------------------------= -------=46eature =2311734: Improved ternary operatorhttps://bugs.ruby-lan= g.org/issues/11734=23change-55298* Author: Yurko Bregey* Status: Closed* = Priority: Normal* Assignee: ----------------------------------------In te= rnary operator it would be nice to be able to pass expression result from= *condition* into *value=5Fif=5Ftrue/value=5Fif=5Ffalse* in such way:=60s= ome=5Flong=5Fexpression =3F &.to=5Fs : 'foobar'=60where =60&=60 refers to= =60some=5Flong=5Fexpression=60Instead of doing:=60some=5Flong=5Fexpressi= on =3F some=5Flong=5Fexpression.to=5Fs : 'foobar'=60or:=60result =3D some= =5Fvery=5Fvery=5Flong=5Fexpressionresult =3F result.to=5Fs : 'foobar'=60-= - https://bugs.ruby-lang.org/ --56738646_5072367_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 7, 2015 at 00:52:27 MST, ko1=40atdot.net wrote:
Issue =2311734 has been updated by = Koichi Sasada.

Status changed from Open to Closed

-= ---------------------------------------
=46eature =2311734: Improved= ternary operator
https://bugs.ruby-lang.org/issues/11734=23change-5= 5298

* Author: Yurko Bregey
* Status: Closed
* Prior= ity: Normal
* Assignee:
--------------------------------------= --
In ternary operator it would be nice to be able to pass expressio= n result from *condition* into *value=5Fif=5Ftrue/value=5Fif=5Ffalse* in= such way:

=60some=5Flong=5Fexpression =3F &.to=5Fs : 'foobar'= =60
where =60&=60 refers to =60some=5Flong=5Fexpression=60

Instead of doing:
=60some=5Flong=5Fexpression =3F some=5Flong=5Fex= pression.to=5Fs : 'foobar'=60

or:
=60result =3D some=5Fve= ry=5Fvery=5Flong=5Fexpression
result =3F result.to=5Fs : 'foobar'=60=



--
https://bugs.ruby-lang.org/
--56738646_5072367_16c--