3 ms·
> Perhaps the most preeminent example would be pointers in C++ - which we generally know to use with 'smart pointers'. Smart pointers are nice and all that but
by UncleEntity 4y ago
> Perhaps the most preeminent example would be pointers in C++ - which we generally know to use with 'smart pointers'.
Smart pointers are nice and all that but I have yet figured out how to mix them with code which doesn’t use them which is like 99.9% of all library code.
Not to mention that interfacing with C code (like python extensions) are basically impossible unless the calling code is responsible for the object lifetimes. I don’t know how language de jour deals with this C interop but have read it is a pain point almost universally.
Even some of the newer languages I see posted here have manual memory management as the default.
- hoseja 4y ago>how to mix them with code which doesn’t use them which is like 99.9% of all library code That's what the "more deeply and seamlessly integrated" would be mostly about.