为什么标准C ++库使用所有小写? [英] Why does the standard C++ library use all lower case?

查看:208
本文介绍了为什么标准C ++库使用所有小写?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道为什么C ++标准库使用所有小写和下划线,而不是 camelCase PascalCase 命名约定。



我个人认为后者在输出代码时更容易处理,但是有没有合理的理由使用前者?

解决方案

主要原因:保持与现有代码的兼容性,因为他们也使用C。

您必须完成 C ++编码标准






这些链接讨论了C / C ++标准库的命名约定。




Just curious why the C++ standard library uses all lower case and underscores instead of camelCase or PascalCase naming convention.

Personally, I find the latter much easier to deal with when typing out code, but is there some kind of legitimate reason to use the former?

解决方案

Main reason : To keep compatibility with the existing code, since they have done it with C also.

You have to go through the C++ Coding standards


These links discusses about the naming conventions of C/C++ Standard Library.

这篇关于为什么标准C ++库使用所有小写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆