Regular void
Regular void
Posted Sep 10, 2026 9:57 UTC (Thu) by tialaramex (subscriber, #21167)In reply to: Void is surprisingly useful. by ralfj
Parent article: Stabilizing Rust's never type
Here's an example of a "Regular void" proposal for C++
https://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p014...
But while "regular void" is superficially attractive, it can't really work in C or C++ and that proposal illustrates some of the difficulty and I'm sure responses when it was presented get into some others.
Basically C has a crap type system and C++ mostly makes things worse rather than better, a "regular void" might be a reasonable patch in a good type system, but in C++ it just substitutes one set of crazy edge cases for a different set of crazy edge cases.
