And the type system does not tell you if you need to call free on this char* when you’re done with it.
Correct. Haphazardly passing ownership of individual nodes around is a C++ and OOP anti-pattern.
Correct. Haphazardly passing ownership of individual nodes around is a C++ and OOP anti-pattern.