This mechanism has the benefit of limiting repeated conditionals testing for certain constraints, such as collection sizes or the previously discussed not-null condition.
这种机制具有限制针对特定约束条件的重复条件测试的好处,如集合大小或之前讨论过的非null的情况。
Specifying this constraint through annotations means I no longer need to litter my code with repetitive conditionals that check for null and throw an exception on finding it.
通过标注指定这个约束条件意味着我的代码不再会被重复的条件弄得乱七八糟,这些条件检查null 值,并且一旦找到该值就会抛出异常。
The applicability of conditionals has been curtailed for version 2.0 (and presumably for future versions, should there be any).
条件指令的适用范围在 2.0版中被减小了(大概在将来的版本中还会更进一步)。
What makes this excellent for users is that they are no longer restricted to simple assignments of values; configuration files expressed as Lua can have comments, conditionals, and more.
对用户来说,最棒的是他们不再局限于简单的赋值;用Lua表达的配置文件可以有注释、条件等。
What makes this excellent for users is that they are no longer restricted to simple assignments of values; configuration files expressed as Lua can have comments, conditionals, and more.
对用户来说,最棒的是他们不再局限于简单的赋值;用Lua表达的配置文件可以有注释、条件等。
应用推荐