Advantages of F-bounded polymorphism over typeclass for return-current-type problem
问题 Returning the current type questions are often asked on StackOverflow. Here is one such example. The usual answers seem to be either F-bounded polymorphism or typeclass pattern solution. Odersky suggests in Is F-bound polymorphism useful? F-bounds do indeed add significant complexity. I would love to be able to get rid of them, and replace them with higher-kinded subtyping whilst tpolecat (the author of linked post) suggests A better strategy is to use a typeclass, which solves the problem