How to get free YouTube subscribers, likes and views?
Get Free YouTube Subscribers, Views and Likes

Contravariance in Scala: Why Is It So Hard? | Rock the JVM

Follow
Rock the JVM

Written form to keep for later: https://blog.rockthejvm.com/contravar...

This video is for the Scala programmer who's only been using generics in their basic form: either with collections, or simply attaching a type argument to a class/trait and minding their own business.

I will introduce the concepts of co and contravariance and why they are useful, with a few examples and some rules of thumb to follow, without getting into the academic weeds that otherwise make these concepts seem so obscure and confusing to most programmers.

Follow Rock the JVM on:

  / rockthejvm  
  / rockthejvm  


Home: https://rockthejvm.com

posted by mahashumu82