[Issue 14835] Statement is not reachable doesn't play along generic code

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 13 11:35:57 PDT 2015


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

--- Comment #3 from Mathias LANG <pro.mathias.lang at gmail.com> ---
Note that with this implementation you get an error (missing return) in
2.068.0, but 2.069.0-b1 fixed that.

But the point is not about the actual implementation, but the effect of this
warning. It makes meta code much harder to write that it's needed, and way less
natural. Will you accept a language where every `if` statement has to be
followed by an `else` statement ?

--


More information about the Digitalmars-d-bugs mailing list