常量和宏的命名一般是大写。
Names of macros and constants are conventionally in uppercase.
原因在于Scheme会对pi和e 进行重命名,使它们不会与包含或嵌入宏的范围中的其他名称冲突。
The reason is that, as mentioned earlier, Scheme will rename pi and e so they don't conflict with other names in enclosing or nested scopes.
这意味着宏所使用的所有临时变量都会在替换发生之前自动重新进行命名,从而防止名字产生冲突。
This means that all temporary variables used by a macro are automatically renamed before the substitution occurs in order to prevent them from having conflicting names.
命名实体的作用类似于宏,允许您使用实体引用替代重复或难以输入的文本。
Named entities can act like macros, letting you replace repetitive or difficult text with entity references.
为宏建立明确的命名约定,并指出来自样板代码的变量。
Have a naming convention which clearly labels macros as such, as well as indicate that a variable came from boilerplate code.
宏的命名都是大写字母,并结合下划线分割字母。
Macro names are all capitalised, with underscores to separates words.
宏的命名都是大写字母,并结合下划线分割字母。
Macro names are all capitalised, with underscores to separates words.
应用推荐