logoalt Hacker News

the8472yesterday at 1:19 AM1 replyview on HN

Having private variants and fields would be useful, yeah. Std cheats a bit with its ErrorKind::Uncategorized unstable+hidden variant to have something unmatchable.


Replies

IshKebabyesterday at 10:41 AM

Probably because non-exhaustive enums didn't exist when it was written?