Meta-Programming with Scala Part III: Partial function application

2008年08月28日 14:27 • 查看 0 次 • 打印本文

In my previous post about Meta-Programming with Scala I suspected that there was no way to express partial function application in Scala’s type system. However Matt Hellige proofed me wrong in his comment. His solution uses a trait for partially applying a function to some of its arguments. An abstract type exposed by the trait represents the resulting function which takes the remaining arguments.

查看原文 »

评论

发表评论