Implicitly Yours

I recently presented at the Dallas Scala Enthusiasts meetup on implicits in Scala.

My presentation can be found here and the code can be found in the associated Github repo:

Here’s some sample code from the slides so this post looks interesting:

implicit val n: Int = 5

def add(x: Int)(implicit y: Int) = x + y

add(5) // takes n from the current scope
add(5) (1) //can always call explicitly

I had a lot of fun making this presentation and switching back and forth between slides and code.  I really liked making the slides in markdown with Remark.js and hosting the slides in the same repo as the code.