Why doesn't ANSI C have namespaces?

前端 未结 9 1658
無奈伤痛
無奈伤痛 2020-11-27 10:02

Having namespaces seems like no-brainer for most languages. But as far as I can tell, ANSI C doesn\'t support it. Why not? Any plans to include it in a future standard?

9条回答
  •  执笔经年
    2020-11-27 10:15

    just historical reasons. nobody thought of having something like a namespace at that time. Also they were really trying to keep the language simple. They may have it in the future

提交回复
热议问题