namespace
翻譯
命名空間
例句
This avoids conflicts in the global namespace.
這避免了在全域命名空間中的衝突。
Each library uses its own namespace.
每個庫都使用自己的命名空間。
文法模式
in a/the namespace 在一個命名空間內。 This avoids conflicts in the global namespace.
近義詞
同義詞: scope (作用域), context (上下文), domain (域) (電腦術語)
詞源
由「name」(名字)和「space」(空間)組成的複合詞。字面意思是「存放名字的空間」,主要用於程式設計領域。
記憶技巧
可以把它想像成一個容器或「空間」,用於存放一組唯一的「名字」或標識符,以避免混淆。