Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Implicits, type classes, and extension methods, part 2: implicit derivation

In the previous post, we learned a bit about type Classes, as they were the major reason for introducing the mechanism. We could see that it is a great way of implementing the open-closed principle in a functional way: while the existing implementations are unchanged we can extend the behavior for new types. We haven’t seen though how to address one issue with them: how to provide behavior for potentially thousands of cases?



This post first appeared on Kubuszok.com, please read the originial post: here

Share the post

Implicits, type classes, and extension methods, part 2: implicit derivation

×

Subscribe to Kubuszok.com

Get updates delivered right to your inbox!

Thank you for your subscription

×