w1100n
This site is best viewed in Google Chrome
6/21/2019 13:49

https://www.zhihu.com/question/22006988
这就是chained invocation(链式调用)或者Method chaining,这种风格的API设计叫做fluent API或者Fluent interface。它常用在Builder pattern的实现上。

<< Previous Posts Newer Posts >>
辽ICP备14012896