Hacker News new | ask | show | jobs
by ncmncm 1513 days ago
Yeah, doesn't make sense. Pointers are less useful in C++, because we have better things now.
1 comments

Of course we do. You still need to know how pointers work to use RAII effectively, though.
Not at all, because RAII is about constructors/destructors, and not at all about pointers.

Heap allocated data is one special case of OS resources that can be managed by constructor/destructor pairs.

What did being pedantic prove here?
The thread started with you insisting a C-level conception of pointers is essential to coding C++, which turns out to be false.

Learning C first is a very bad way to learn C++. One can pick up pointers later, and asm blocks after that.