←back to thread

The C23 edition of Modern C

(gustedt.wordpress.com)
397 points bwidlar | 1 comments | | HN request time: 0s | source
Show context
russellbeattie ◴[] No.41852928[source]
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.
replies(1): >>41854373 #
1. amomchilov ◴[] No.41854373[source]
Such is the issue with bad defaults. Opting into the sensible thing makes most of your code ugly, instead of just the exceptions.