Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualkloffy

Posted 12 June 2013 - 03:14 PM

It sounds like you would enjoy Scala's implicit parameters. I am somewhat torn on such features. I can certainly see where you're coming from, but - more often than not - explicit is better than implicit.
 
Edit: The video "Typeclasses in Scala with Dan Rosen" discusses a more realistic example built around serialization. The final solution makes use of implicit parameters.

#2kloffy

Posted 12 June 2013 - 03:11 PM

It sounds like you would enjoy Scala's implicit parameters. I am somewhat torn on such features. I can certainly see where you're coming from, but - more often than not - explicit is better than implicit.
 
Edit: The video "Typeclasses in Scala with Dan Rosen" discusses a more realistic scenario built around serialization. He arrives at a nice design, in part through the use of implicit parameters.

#1kloffy

Posted 12 June 2013 - 03:01 PM

It sounds like you would enjoy Scala's implicit parameters. I am somewhat torn on such features. I can certainly see where you're coming from, but - more often than not - explicit is better than implicit.

PARTNERS