Today I had the following comment conversation posted word for word on one of my answers:
Person A: @OP Or this if you want to stick with pointers for some reason:
myclass *a = new myclass();
...Person B: I wish I could downvote comments. Certainly do not use a naked
new
.Person B: Even if they do (which is highly unlikely at their level), they definitely should not use owning raw pointers. And you definitely should not recommend that to anyone.
Person A: Well I disagree. It's not that hard to learn proper memory managment.
Person B: Then you are wrong. You are promoting an anti-pattern.
I feel like the last few comments aren't very useful, so I was tempted to flag as NLN, but I'm not sure how much of the rest of the conversation I should leave. What's the community's take on comments arguing about patterns/design?