3 ms·
> 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 semant
by jstimpfle 4y ago
> 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.
- mgaunard 4y agoYou might not approve, but the reality is that most C code is built like that.