For instance, it would be nice to let the Boolean parameters be defined as false if the flag character is present, rather than always true if present.
例如,如果给出了标记字符的话,将boolean形参定义为false会比较好,而不是总将它定义为true。
The Boolean parameters only need the flag character itself to set a value, but the other types of parameters require some sort of additional argument information.
boolean形参只需标记字符本身就可以设置一个值,而其他类型的形参还需要某种附加的实参信息。
Do use enumerations if a member would otherwise have two or more Boolean parameters.
如果成员本来有两个或多个布尔参数,则要使用枚举。
应用推荐