Written form to keep for later: blog.rockthejv...
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: rockthejvm.com
-------------------------------------------------------------------------
22 авг 2024