News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by secondcoming on Saturday January 07, 2023 @01:40PM (#34291113)
I assume you mean C++ here?

In any case, in my experience this bad practice comes from Java devs who’ve moved to C++.

Re:Modern C for C++ Peeps by moloch-hai on Saturday January 07, 2023 @01:55PM (#34291297)
Java Disease is its own topic.

But most shared pointer ownership in C is wholly ad hoc, without even reference counting.

Re:Modern C for C++ Peeps by mgaunard on Saturday January 07, 2023 @03:08PM (#34292119)
No, I mean C. People don't do that in C++, since C++ provides ways to define value semantics (copy, move, assignment).