3 ms·
What are the implications of not implementing FunctionN? Will the apply method still be there? Can I still pass the case class companion object to a higher orde
by lmm 13y ago
What are the implications of not implementing FunctionN? Will the apply method still be there? Can I still pass the case class companion object to a higher order function? Will shapeless' Iso.hlist still work? (that's the big one really, as it allows dealing with case classes more-or-less generically)
- gourlaysama 13y agoYes the apply method is still there. But since it has more than 22 arguments, you cant't lift it into a function object anymore. This will break some tools, like Play's forms, that need you to pass to a couple of serialization/deserialization functions. Shapeless will probably be fine, or at least, since it is macro based, it will be able to go around the missing unapply and extract the fields directly, like pattern matching does. (I don't know shapeless enough to go into more details)
- caoilte 13y agoAaaaah, interesting. Spray uses Shapeless heavily, so this should make it a shoo-in for the Typesafe stack.