[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Ternary operator patch
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 9 Jun 2019 10:03:09 +0200
On Sun, Jun 9, 2019 at 5:23 AM JKB <bcs@hush.ai> wrote:
> a = if b == 1 then x else y
Anybody else really feeling the need for 'end' at the end?
Is there any serious syntax/semantic reason why the if 'statement'
cannot be an expression?
(I've got used to expression-oriented style in Rust. People might say
"well, that's not Algol style" but the great Ur-Language Algol-68
allowed it)