lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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)