方法指针只是一种方便的机制。
可以将方法指针当作调用对象方法的方便机制。
Think of the method pointer as a short-hand convenience mechanism for invoking methods along an object graph.
在清单10中,我使用了Groovy的方法指针来做这件坏事。
I've used Groovy's method Pointers for just this nefarious purpose in Listing 10.
应用推荐