News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by jstimpfle on Saturday January 07, 2023 @12:33PM (#34290383)
> Due to language limitations, a lot of C programmers make all their variables shared pointers, which means they don't have to figure out how to do value semantics,

I wouldn't approve. Make shared (i.e. ref-counted) pointers when actually needed. Writing C is best when not mimicking bigger languages (i.e. with GC), but when figuring out how a system can work optimally.

Re:Modern C for C++ Peeps by mgaunard on Saturday January 07, 2023 @12:43PM (#34290505)
You might not approve, but the reality is that most C code is built like that.