Why is the “new” operator consider harmful? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is the “new” operator consider harmful?

I just started to read about design patterns, and when I got to Singleton, I found that some people consider it to be harmful, I want to know why, or if this is even true.

10th Feb 2019, 1:16 AM
Manuel Mendoza
Manuel Mendoza - avatar
1 Answer
+ 7
Here is an article which may help you http://wiki.c2.com/?NewConsideredHarmful
10th Feb 2019, 2:41 AM
GAWEN STEASY
GAWEN STEASY - avatar