如果你发现自己总是过分注释,请先把函数命名和变量命名处理好。
If you are over-commenting, you're probably naming your functions and variables poorly.
对于这么小的函数,这似乎太麻烦了,甚至有点过分,但是对于 shell 脚本编程新手和阅读这个函数的人员而言,注释是非常有价值的。
This may seem tedious and a bit of overkill for such a small function, but the value of the comments to a novice shell scripter or someone just looking at the function can be invaluable.
匿名函数通常通过分配到一个代理变量,来在其他函数的上下文中定义。
An anonymous function is defined within the context of another function, usually by assigning it to a delegate variable.
应用推荐