[Issue 4375] Require explicit braces when 'else' is ambiguous

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 23 13:12:11 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4375



--- Comment #11 from bearophile_hugs at eml.cc 2010-09-23 13:11:30 PDT ---
Jonathan M Davis:

>The grammar is totally unambiguous.<

For a computer. But people aren't that precise. The syntax of a computer
language is not designed for the computer, it's designed to be an interface for
the very bug-prone apes that use the computer.


>I can't see Walter ever agreeing to make it an error.<

In D there are several precedents, this is a bug in D only:
for (i = 0; i < 10; i++);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list