News for hackers. Stuff that matters.
Re:Why Not Just Do Simple C++ RAII in C? by raydev on Thursday May 23, 2024 @11:33AM (#40455997)
> until the language becomes too complex for anyone to fully understand

Like C, with its many hidden behaviors?

Re:Why Not Just Do Simple C++ RAII in C? by tempodox on Thursday May 23, 2024 @01:22PM (#40457383)
Not hidden, the C standard spells it out. And implementation-defined behavior can be observed.
Re:Why Not Just Do Simple C++ RAII in C? by raydev on Thursday May 23, 2024 @01:47PM (#40457704)
> Not hidden, the C standard spells it out

I would argue that if it needs to be spelled out in a separate document from the code you're reading, then it's hidden.

Re:Why Not Just Do Simple C++ RAII in C? by tempodox on Tuesday May 28, 2024 @10:57AM (#40501338)
You must be joking. Like, you only use languages that don't require you to learn anything.
Re:Why Not Just Do Simple C++ RAII in C? by uecker on Thursday May 23, 2024 @06:31PM (#40460664)
What hidden behaviors? The only hidden behaviors I can think of which are somewhat problematic in C are implicit value-changing conversions. But one can instruct compilers to diagnose those.