for loop parens

ixid nuaccount at gmail.com
Fri Jul 12 12:46:31 PDT 2013


On Friday, 12 July 2013 at 19:44:43 UTC, bearophile wrote:
> ixid:
>
>> Go and Rust seem to have been able to dispense with the parens 
>> in for loops, is this something that would be possible to do 
>> in D or are there parsing and grammatical reasons not to do 
>> this?
>
> Go has chosen a different syntax. I don't think D syntax of for 
> loops can change now...
>
> Bye,
> bearophile

Humour me. =) Perhaps as a discussion over a D3 language. If 
curly brackets were required where parens were omitted what would 
prevent such a syntax in D?


More information about the Digitalmars-d-learn mailing list