Parenthesis around if/for/while condition is not necessary

Tobias Müller troplin at bluewin.ch
Sat Jun 23 12:34:49 UTC 2018


aedt <adnansignsup at gmail.com> wrote:
> Modern languages have already 
> dropped this requirement (i.e. Rust, Nim) and I don't see any 
> reason not to do so.

AFAIK the if and else branches in Rust always have to be enclosed in curly
braces because of this.
I don't remember the exact ambiguity though.


More information about the Digitalmars-d mailing list