4 ms·
Professional C++ coder here. Seeing new and delete has very heavy code smell and can be avoided 99% of the time.
by banachtarski 13y ago
Professional C++ coder here.
Seeing new and delete has very heavy code smell and can be avoided 99% of the time.
- mcphage 13y agoWhat have you done to your language that the native syntax for creating and deleting objects is a code smell?!
- AnimalMuppet 13y agoRecognized that the average programmer can't reliably handle the tool?
- kd0amg 13y agoIncluded an alternative to new/delete's form of allocation that covers a good range of its use cases and is less prone to screwup.
- banachtarski 13y agoThey are the primitive functions for making and destroying objects on the heap which requires more care than construction and destruction on the stack.