On 07/23/2015 09:18 PM, Andrei Alexandrescu wrote:
On 7/23/15 1:51 PM, Timon Gehr wrote:
On 07/23/2015 06:28 PM, Andrei Alexandrescu wrote:
On 7/23/15 10:49 AM, ixid wrote:
On Thursday, 23 July 2015 at 13:33:43 UTC, Adam D. Ruppe wrote:
On Wednesday, 22 July 2015 at 21:04:57 UTC, simendsjo wrote:
:) The example was written to save space. I recon you understand what
I mean.

Yeah, but the if/else is one of the most useful examples of it, and is
covered by ?:, so the whole thing becomes less compelling then.

The other places where I've used it in languages that support it are
little blocks crammed into a line and sometimes exception grabbing...
but still, the value isn't that great.

If we had a clean sheet wouldn't it be better to have if return a value
and ditch ternary?

Possibly, but then you'd need to have while return a value. -- Andrei

https://en.wikipedia.org/wiki/Unit_type

I said awkward, not impossible. -- Andrei

It's not awkward.

Reply via email to