[Issue 8757] Require parenthesization of ternary operator when compounded

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 19 00:57:02 PST 2013


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



--- Comment #3 from bearophile_hugs at eml.cc 2013-01-19 00:56:52 PST ---
(In reply to comment #2)
> Any and all operators are bug-prone if you don't understand or remember their
> precedence rules. If you want the extra protection against precedence
> screw-ups, then use parens. But I don't see any reason to _require_ them.

I've shown that it's a common enough bug even for expert C/C++ programmers. So
saying "I don't see any reason" is too much weak. To invalidate this
enhancement request you have to show statistics that confirm your point.

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