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

Seb <[email protected]> changed:

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

--- Comment #1 from Seb <[email protected]> ---
> It should probably be an `assert`.

Agreed! `final switch` is actually usable in `nothrow` code (see e.g.
https://run.dlang.io/is/mjVbPr), s.t. there's no reason to throw an exception.

Also programming errors are typically handled by `assert`.

--

Reply via email to