3 ms·
This is literally what __builtin_unreachable() does. But it has the added benefit of the compiler understanding the intent so it works well with diagnostics.
by kevincox 6y ago
This is literally what __builtin_unreachable() does. But it has the added benefit of the compiler understanding the intent so it works well with diagnostics.
- saagarjha 6y agoBut that's a builtin, rather than something that's part of the core language :)