Git Product home page Git Product logo

Comments (3)

vishantrathi avatar vishantrathi commented on August 22, 2024

https://www.programiz.com/cpp-programming/std-namespace

Checkout above link for more explanation

I do not want to misinform others, so please correct me if I'm wrong.

from the-c-20-masterclass-source-code.

Golem2024 avatar Golem2024 commented on August 22, 2024

I do think you have a point but I think the creators should keep it as is, because this is a course aimed at beginners. It's difficult to figure out what works better for beginners, but since the content has already been created, and because a beginner wouldn't know what they're missing out on, it'd be difficult to prove that updating that would be ultimately be better.

Your point is that it's less keystrokes, but what about the learning aspect? How does updating improve learning or how does keep it impede learning?

from the-c-20-masterclass-source-code.

rutura avatar rutura commented on August 22, 2024

Explicitly using std:: in front of names makes it clear where the name is coming from. Without that, the global namespace gets polluted pretty fast. Here is a good piece of reading on the subject.

from the-c-20-masterclass-source-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.