A code example that shows why I don't like warnings
gooberman at gmail.com
Sun Oct 20 12:53:22 UTC 2019
On Friday, 18 October 2019 at 16:38:38 UTC, Adam D. Ruppe wrote:
> Warning: statement is not reachable
This is also another valid argument for error/warning codes.
This exact thing happens *all the time* in my code, and it
results in me having to write my static ifs and CTFE functions in
a roundabout way just to not get the warning.
Whereas if I had the warning code, I could tell the compiler to
suppress that warning. Exactly like I do in C++.
More information about the Digitalmars-d