Also, in the spirit of further simplification for common programming tasks, the test case also USES the more convenient Groovy dot property name notation for accessing properties.
同时,出于进一步简化通用编程任务的考虑,测试用例也使用了更为简便的Groovy点属性名标记来访问属性。
Note that I used an old-fashioned explicit int loop, rather than the more convenient for (int i : integers) enhanced for loop, because it is slightly faster, even for arrays (see Resources).
注意,我使用的是一个老式的显式 int 循环,而不是更方便的 for (int i : integers) 改进型 for 循环,因为它的速度快一点儿(参见 参考资料)。
You can then use the more convenient dot syntax.
然后,您就可以使用更为方便的点语法。
For example, if it's more convenient should you change the environment to make the unhealthy food less convenient and make healthy foods more convenient?
举例来说,如果是因为方便,那你改变外部环境,会使得健康食品比垃圾食品更容易获得吗
应用推荐