这会减少多次编写同样代码的开销,因为只需在一个位置更新代码。
You'll reduce the overhead of writing the same piece of code multiple times because you update the code in only one place.
更小、更简洁的构建文件维护和理解起来要容易得多。实际上,这种模式对于代码而言同样适用。
Smaller, more concise build files are much easier to maintain and understand; in fact, this pattern happens to hold true for code as well.
同样,转化代码对库的依赖性是个潜在的问题。
Also, the translated code's dependence on a library is also a potential issue.
I'm again, iterating with this four loop, same code as before.
我再次,重复使用for循环,同样的代码。
So same code up here -- thankful is initialized to false.
所以这里的同样的代码--thankful被初始化为false值。
应用推荐