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.
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.