Skip to content

Onoffswitch.net

  • About
  • License

Tag: coproduct

Coproducts and polymorphic functions for safety

October 15, 2016

I was recently exploring shapeless and a coworker turned me onto the interesting features of coproducts and how they can be used with polymorphic functions.

Frequently when using pattern matching you want to make sure that all cases are exhaustively checked.… Read the rest

Posted in CodeTagged coproduct, scala, shapeless
© 2019 Onoffswitch.net • Slightly Theme by Nick Ciliak.