Named Constants Within an Interface 接口内命名的常量
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).
即使用一些指定的常量代替元组位置,这个版本也无疑是难于阅读的(但是我认为对于直接处理元组树这已经是最好的了)。
By the way, I want to emphasize that I've named these constants to make it easier to change.
顺便说一下,我想要强调,我给这些常数命名是为了更方便之后更改。
应用推荐