Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit explanation of co- and contravariance #8

Open
noelwelsh opened this issue Jan 4, 2016 · 1 comment
Open

Revisit explanation of co- and contravariance #8

noelwelsh opened this issue Jan 4, 2016 · 1 comment

Comments

@noelwelsh
Copy link
Contributor

A reader, Allan Lim, writes

Happy new year! I hope you are doing great! I actually love to read your books above all Scala books available in the market. If I can make some suggestions, the explanation about covariant, invariant and contravariant in "Essential Scala" is not adequate. I think if you provide more example, it will help a lot.

Something similar to this - http://julien.richard-foy.fr/blog/2013/02/21/be-friend-with-covariance-and-contravariance/ would probably suffice.

Take a look at our description of variance in light of the above and see if it can be improved.

@davegurnell
Copy link
Contributor

I've put a new explanation in Advanced Scala (in the end of the functors chapter) that may provide good material for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants