Sudo for life
Functional programming: ideas and concerns.
Showing posts with label
View Bound
.
Show all posts
Showing posts with label
View Bound
.
Show all posts
Sunday, 3 June 2012
Scala: View Bound and Context Bounds
View Bound
A view bound is Scala's mechanism to enable the use of some type A as if it were some type T (Real type). The typical syntax is this:
def
func[A <% T](a: A) = a.methodFromT
Read more »
Older Posts
Home
Subscribe to:
Posts (Atom)