← Back to context

Comment by russellbeattie

12 hours ago

Wow, the use of attributes like [[__unsequenced__]], [[maybe_unused]] and [[noreturn]] throughout the book is really awful. It seems pretty pedantic of the author to litter all the code examples with something that is mostly optional. For a second I wondered if C23 required them.

Such is the issue with bad defaults. Opting into the sensible thing makes most of your code ugly, instead of just the exceptions.