Skip to content

Comment on Q: Why can I access an out-of-scope C++ var? A: So you rent a hotel room...parent

Comments

If those people who write code for a living never program in C++ or other languages with pointers, instead using languages like Java and Python, I wouldn't expect them to know what happens when you mess around with pointers in C++. If you don't use pointers, and your language doesn't even support pointers, why care about the behavior of pointers? Understanding the simpler concept of "references" is good enough.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.