What is a “context bound” in Scala?
问题 One of the new features of Scala 2.8 are context bounds. What is a context bound and where is it useful? Of course I searched first (and found for example this) but I couldn\'t find any really clear and detailed information. 回答1: Did you find this article? It covers the new context bound feature, within the context of array improvements. Generally, a type parameter with a context bound is of the form [T: Bound] ; it is expanded to plain type parameter T together with an implicit parameter of