[Issue 8757] Require parenthesization of ternary operator when compounded

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 26 11:33:38 PDT 2013


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



--- Comment #8 from Jonathan M Davis <jmdavisProg at gmx.com> 2013-06-26 11:33:36 PDT ---
Visual Studio is one of the worst compilers I've ever seen with regards to
warnings. It has tons of annoying, useless warnings which don't help one whit,
forcing you to shut them off. So, I would consider Visual Studio to be a
horrible example of what you should or shouldn't warn against. And I would put
any warning about operator precedence on the list of warnings that should be
removed. It subverts the language when you're forced to add parens rather than
use operator precedence.

It's one thing to force parens with the language (i.e. make it an error) in
order to prevent bugs (which I'm still generally against), but it's far worse
to warn about it, because the compiler is basically claiming the language is
wrong, making it so that you have to do what the compiler says rather than what
the language considers perfectly legal.

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