~/talk

How to be polymorphic in Scala

Talkat JavaDay 2013 · on Saturday, 2013-10-19· [scala]
links:none on file
slides:none on file

Explains concrete Scala features: type classes implemented via implicits with examples for Int and List, a Show instance that either prints numbers or bars, and compiler errors when instances are missing; shows implicit conversions used to extend syntax (custom ternary-like operator, complex number + overload) and how variance, higher-kinded types and predicative limits behave. Demonstrates trait mixins for per-instance behavior, notes compile-time dispatch and runtime performance tradeoffs (slower compilation but zero runtime magic).

AI-written summary · about

  1. 0:00Polymorphism introduction
  2. 1:20Parametric polymorphism
  3. 5:17Higher-rank polymorphism
  4. 7:24Variance in Scala
  5. 13:54Traits and roles
  6. 17:56Operator overloading
  7. 21:11Type casting
  8. 24:02Syntax extension
  9. 28:17Type Class in Scala
  10. 35:27Type Class practice
  11. 37:37Comparison with JavaScript
  12. 41:15Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.