Comment by glimshe
23 days ago
I once worked at a FAANG company where I had access to some of the leading C++ experts in the world (some were part of the international language committee). I emailed an internal C++ list asking whether a certain line of code would create a memory leak. It was a pure use of STL templates and casting. The experts could NOT agree whether I was doing it correctly. Some expected a leak, others didn't.
This true little story says everything about C++. JavaScript is full of these things too.
That’s every language. Experts will argue and pontificate the nuances of each branching instruction.
But they all should agree on whether a certain line is correct (ie causes a memory leak).