[Issue 17424] Add useful warnings
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 23 17:50:06 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17424
greenify <greeenify at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greeenify at gmail.com
--- Comment #1 from greenify <greeenify at gmail.com> ---
Great idea. This is one of the areas where D is definitely behind other
languages.
IIRC Walter believes that the compiler isn't a linter, so if I am not mistaken
only warnings with minimal or zero overhead will be merged. Ideally Dscanner
(https://github.com/dlang-community/D-Scanner) should be able to yield such
warnings, but with it's current status as (a pure parser without any semantical
analysis) many of your warnings will be hard to achieve. Hence, I guess the
least controversial option is to introduce these warnings step by step with a
new opt-in flag in the D fronted.
--
More information about the Digitalmars-d-bugs
mailing list