Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: