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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
This will most likely be marked as invalid. The reasons are:

1. Walter is against warnings. His position, to which I adhere, is that the
compiler should either emit an error or accept the code. Anything in between is
speculation and it depends on what you want to do with your code.

2. There is no way that the code in the bug report will error. That is valid
code.

3. The check for the general case will come with a performance cost for a niche
case.

4. It is a job for static analysis tools to warn us on such code smells, not
that of a compiler.

I suggest we close this as invalid.

--

Reply via email to