Use * as a placeholder in addition to ?.#91
Merged
non merged 1 commit intotypelevel:masterfrom Feb 22, 2019
Merged
Conversation
Motivation: There is a proposal for F[?] to denote a wildcard (currently F[_]) in Scala 3.0+ and F[_] to be a shorthand syntax for type lambda (F[?] with current kind-projector syntax) in Scala 3.3+ (see scala/scala3#5379). Supporting an additional placeholder will allow users to gradually move from `?` to `*` before Scala 3.0 is out. Resolves typelevel#84.
LukaJCB
approved these changes
Feb 21, 2019
Contributor
|
Seems like a reasonable idea. 👍 (If we think of a better symbol than |
|
Can there be a way to disable this? I'm actually using |
This was referenced Jun 25, 2019
milessabin
added a commit
to milessabin/kind-projector
that referenced
this pull request
Jul 3, 2019
The plan for Dotty is to repurpose `?` for wildcards instead of `_`. In typelevel#91 `*` was added to kind-projecter as alternative placeshold syntax to `?`, and Dotty now also supports `*` as placeholder syntax for cross compilation via `-Ykind-projector`. This PR updates the documentation and examples to use `*` rather than `?` and adds a warning that the `?` syntax will be deprecated in future.
sirocchj
pushed a commit
to sirocchj/kind-projector
that referenced
this pull request
Oct 3, 2019
The plan for Dotty is to repurpose `?` for wildcards instead of `_`. In typelevel#91 `*` was added to kind-projecter as alternative placeshold syntax to `?`, and Dotty now also supports `*` as placeholder syntax for cross compilation via `-Ykind-projector`. This PR updates the documentation and examples to use `*` rather than `?` and adds a warning that the `?` syntax will be deprecated in future.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation:
There is a proposal for
F[?]to denote a wildcard (currentlyF[_]) in Scala 3.0+ andF[_]to be a shorthand syntax for type lambda (F[?]with current kind-projector syntax) in Scala 3.3+ (seescala/scala3#5379).
Supporting an additional placeholder will allow users to gradually move from
?to*before Scala 3.0 is out.Resolves #84.