C++ Video: Koenig Lookup and Interface Principle

The purpose of namespaces is to avoid name clash. It seems Koenig Lookup mixes up the names and defeats the very purpose of namespace. Why do we need Koenig Lookup? This video explains the rationale of Koenig and introduce a principle of interface design.

http://youtu.be/JURvI6MB-po
Last edited on
boqian2000 wrote:
It seems Koenig Lookup mixes up the names and defeats the very purpose of namespace.

How do you figure? This is the exact reason that namespaces were created.

boqian2000 wrote:
Why do we need Koenig Lookup?

Because C++ uses namespaces...

boqian2000 wrote:
This video explains the rationale of Koenig and introduce a principle of interface design.

I didn't understand how you introduced interface design. If you're referring to the ability to use objects as parameters, you didn't introduce that here, but in another video about objects. If you're referring to the namespace principle, I fail to see how that's part of interface design.

I did, however, learn the name for this concept (couldn't imagine that there would be a name for it though). I believe this should have been in the lounge section though because it might be open to debate.
Topic archived. No new replies allowed.