logoalt Hacker News

creata • today at 4:08 PM • 0 replies • view on HN

It is extremely unidiomatic to use tagged unions in C for error handling. It's definitely possible, but awkward, and the compiler doesn't check that you checked the tag.