C++ Namespaces, comparison to Java packages

后端 未结 7 894
悲&欢浪女
悲&欢浪女 2021-01-31 08:07

I\'ve done a bunch of Java coding recently and have got used to very specific package naming systems, with deep nesting e.g. com.company.project.db. This works fine

7条回答
  •  佛祖请我去吃肉
    2021-01-31 08:09

    I'll throw in a couple of things I've heard but don't know the truthfulness of, please help confirm/dispel them.

    1. C++ performance is (somehow) affected by long fully-specified method names e.g namespace1::namespace2::namespace3::classX::method123()

    2. You might hit a limit on allowed symbol length in the compiler/linker

提交回复
热议问题