Avoid kind-projector syntax with variance annotations #3207
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dotty currently reserves
*
for use as a type lambda placeholder for compatibility with kind-projector's syntax on Scala 2, via a currently-unimplemented-Ykind-projector
compiler option. It's not clear whether-Ykind-projector
should or will support kind-projector'sλ[`-α` => Whatever[α]]
syntax, or even-*
. (I'm working on implementing-Ykind-projector
at the moment, and personally I don't see compatibility with the goofier corners of kind-projector's syntax as a priority.)Cats only uses kind-projector's variance annotations in this one file, and they're pretty easy to replace, and in my view the vanilla Scala syntax is clearer, anyway.
/cc @smarter