5 ms·
Dan Grossman of the University of Washington delivered a Programming Languages course on Coursera. Thanks to his lecture [1], I'll never forget "Function subty
by bhrgunatha 11y ago
Dan Grossman of the University of Washington delivered a Programming Languages course on Coursera.
Thanks to his lecture [1], I'll never forget "Function subtyping is contravariant in its argument types and covariant in its return type" - even though I have to think to remember whether the subtype is the contravariant or covariant, I remember the principle very very clearly due to his antics.
[1] https://www.youtube.com/watch?v=pb_k8h6RuAY https://www.youtube.com/watch?v=pb_k8h6RuAY
- john_butts 11y agoThat's a great course, and actually a perfect conceptual base for Swift in a lot of ways.