Consider providing named constants for commonly used combinations of flags.
请考虑为常用标志组合创建一个枚举常量。
The include module provides named constants for each IO operation code (i.e. QrnOperation_OPEN, QrnOperation_CHAIN, etc).
这个include模块为每个IO操作码提供一个已命名常量(即 QrnOperation_OPEN、QrnOperation_CHAIN,等等)。
Even with some named constants to stand for tuple positions, this version is certainly harder to read (but I think it is about the best you can do directly with tuple trees).
即使用一些指定的常量代替元组位置,这个版本也无疑是难于阅读的(但是我认为对于直接处理元组树这已经是最好的了)。
Constants cannot be initialized with query expressions because constants may only be initialized with some combination of literals, named constants, and mathematical operators.
常量不能用查询表达式进行初始化,因为常量只能用文本、命名常量和数学运算符的某一组合进行初始化。
One factor to keep in mind when working with annotations is that the named values must always be compile-time constants and can never be null.
使用注释时要记住的一个因素是,命名值必须始终是编译时常量,而且不能为null。
By the way, I want to emphasize that I've named these constants to make it easier to change.
顺便说一下,我想要强调,我给这些常数命名是为了更方便之后更改。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
An enumeration type (also named an enumeration or an enum) provides an efficient way to define a set of named integral constants that may be assigned to a variable.
枚举类型(也称为枚举)为定义一组可以赋给变量的命名整数常量提供了一种有效的方法。
应用推荐