Get the latest tech news

C++ Enum Class and Error Codes, Part 3


Last time we explored some commonly found alternatives to using enums for error codes such as asserts, contracts and std::expected. Finally today we consider some unthinkable options.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of class

class

Photo of Error

Error

Photo of codes

codes

Related news:

News photo

Show HN: SFX – A language where 0.1 and 0.2 = 0.3 and Context is first-class

News photo

No room for error – A case study of Gleam in production at Uncover

News photo

Analogue 3D review - better late than never, this N64 redux is another best-in-class retro experience