News for hackers. Stuff that matters.
Re:Catch-23: The New C Standard Sets the World on Fire by flohofwoe on Sunday April 02, 2023 @05:51AM (#35408879)
Unreachable is mainly used as an optimization hint. For instance if you put an unreachable into the default branch of a continuous and non-exhaustive (from the pov of the compiler) switch-case statement, the compiler will not emit a range check for the jump table lookup.

There are no comments on this comment yet.