News for hackers. Stuff that matters.
Re:Exploring ML-Style Modular Programming in Scala by trurl on Saturday April 04, 2015 @11:04PM (#9322994)
It isn't about freedom. If you are going to parametrize the entire trait, there is no longer any point to giving T a higher kind. As such it just adds noise and is bad style.
Re:Exploring ML-Style Modular Programming in Scala by yawaramin on Saturday April 04, 2015 @11:54PM (#9323074)
Actually I agree with you. In fact if you look at the 'UnbalancedSet' functor I define the type 'T' to not take any parameters. In the case of 'IntMap' it just happened that I missed that. So thanks for pointing it out. I'll make the necessary updates.