[Issue 8433] Compiler could warn on static if checks which can't branch

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 19 05:45:17 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=8433

Mathias LANG <pro.mathias.lang at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang at gmail.com

--- Comment #3 from Mathias LANG <pro.mathias.lang at gmail.com> ---
My issue with such a check is that the code is not *clearly* wrong.
As a result, it can trigger false positive (very easily, given D's
metaprogramming abilities) and those are extremely frustrating to the user and
mostly negate the benefits of the warning (because the one benefiting from it
are not the ones "paying the price").

It's been 6 years, do you think we should close this ?

--


More information about the Digitalmars-d-bugs mailing list