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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 23 13:01:32 PDT 2010


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



--- Comment #10 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-09-23 13:00:50 PDT ---
Except that this case is a classic case in computer programming with a clear
and standard solution. The grammar is totally unambiguous. I can't see Walter
ever agreeing to make it an error. No other language that I'm aware of does. A
warning makes some sense. An error does not. Granted, Walter doesn't like
warnings, but that doesn't mean that there's no way that he's going to add it,
and there's always the possibility that another D compiler down the road would
flag it as a warning. Just because Walter wouldn't want to make it a warning in
dmd doesn't mean that it should become an error.

If it's a question of error or nothing, I'm strongly behind nothing, and my
guess is that Walter will be as well. I'm fine with it becoming a warning, but
an error is too strong. The language is quite clear on the matter.

-- 
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