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

Change Parse to Covariant. #36

Closed
wants to merge 1 commit into from
Closed

Conversation

HuwCampbell
Copy link
Collaborator

Parse should almost certainly be covariant.
In the Git example, a Parse[GitVersion] should be a Parse[GitCommand], which is wasn't before, meaning a lot of extra type annotations and stuffing around were required.

Update Git example.
@markhibberd
Copy link
Owner

👎 This is just not an option, it just shoves the issue around and generally ends up worse allowing incorrect inference to Any or Product. Do the right thing and hide constructor types and these issues go away, it is harder work but you end up in a better place.

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

Successfully merging this pull request may close these issues.

None yet

2 participants