Do you think if statement as expression would be nice to have in D?

zjh fqbqrr at 163.com
Sat Jun 4 11:47:47 UTC 2022


On Saturday, 4 June 2022 at 11:35:41 UTC, user1234 wrote:

> ```
> const char = if (current < input.len)
>             input[current]
>         else
>             break;
> ```
>

It's too ugly!


More information about the Digitalmars-d mailing list