3 ms·
How about: class Bottom { private: Bottom(){} };
by kbaldor 9y ago
How about:
class Bottom { private: Bottom(){} };
- Koshkin 9y agoThis does not look right. If I understand correctly, the position of Bottom in the hierarchy of types is exactly the opposite to that of Unit: the latter could serve as the "universal base" (like the type Object), whereas the former could be seen as the "universal descendant" (some kind of Null type). In other words, Unit is "anything" and Bottom is "nothing".
- theoh 9y agoSee https://en.wikipedia.org/wiki/Top_type https://en.wikipedia.org/wiki/Top_type