摘要: 1. 转换接收端 在 Scala 中,implicit 的一个常见用法,是作为方法调用的接收端,如果觉得这种说法过于晦涩的话,我的理解是: implicit 可以动态地为目标对象增加函数。 我们首先看一段例子: implicit class JsonPatchExt(underlying: play 阅读全文
posted @ 2021-05-20 16:21 Gerrard_Feng 阅读(273) 评论(0) 推荐(0) 编辑