Why is the ‚Äúnew‚ÄĚ operator consider harmful? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
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 Resposta
+ 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