Google Java Style Guidetable memorized. 4.8 Specific constructs 4.8.1 Enum classes After each comma that follows an enum constant, a line break is optional. Ad- ditional blank lines (usually just one) are also allowed. This is test methods. 5.2.4 Constant names Constant names use CONSTANT_CASE: all uppercase letters, with words separated by underscores. But what is a constant, exactly? Every constant is a static final field Before choosing constant case, consider whether the field really feels like a con- stant. For example, if any of that instance’s observable state can change, it is almost certainly not a constant. Merely intending0 码力 | 19 页 | 84.76 KB | 1 年前3
Google C++ Style Guidecode around you! Use of constexpr In C++11, use constexpr to define true constants or to ensure constant initial- ization. Some variables can be declared constexpr to indicate the variables are true con- workarounds in these definitions. constexpr definitions enable a more robust specification of the constant parts of an interface. Use constexpr to specify true constants and the functions that 36 support expand to independent strings which are con- catenated by the compiler. Hence if you are using a non-constant format string, you need to insert the value of the macro into the format, rather than the name.0 码力 | 83 页 | 238.71 KB | 1 年前3
Google Python Style Guidelink module_name, package_name, ClassName, method_name, ExceptionName, function_name, GLOBAL_CONSTANT_NAME, global_var_name, instance_var_name, function_parameter_name, local_var_name. Names to Avoid0 码力 | 30 页 | 94.81 KB | 1 年前3
共 3 条
- 1













