Remix.run Logo
▲ bitwize 5 hours ago

lol nobody "understands C code well"

The idea that C is a smol language that can be completely understood by one person is one of those myths that need to be put to bed. C is riddled with complexities and footguns, especially but not exclusively around undefined behavior.

▲sedan_baklazhan 5 hours ago | parent | next [-]

Undefined behavior is something that you will avoid - of course, only if you know the language pretty well.

▲senderista 4 hours ago | parent [-]

UB is basically impossible to avoid in practice--that is why the Linux kernel forced GCC to add a bunch of flags to "do what I mean", making UB defined in those cases.

▲skydhash 5 hours ago | parent | prev [-]

> The idea that C is a smol language that can be completely understood by one person is one of those myths that need to be put to bed

You don’t need to understand the language completely. You only need to understand the general semantics and refer to the standard and docs to get the semantics down. That’s what they’re here for.