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

Make TypeEq and its inner types interfaces #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

gneuvill
Copy link
Contributor

@gneuvill gneuvill commented May 25, 2017

As @jbgi and I discussed on gitter. I wonder if we could get rid of a number of casts by instantiating TypeEq through method references....

@jbgi jbgi requested review from jbgi and clinuxrulz May 26, 2017 07:06
Copy link

@clinuxrulz clinuxrulz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Bit of a noise reduction for some uses.

* @param <D> the last type variable after substitution.
* @return a factory to lift the TypeEq instances into any type constructor.
*/
public final <C, D> Lift2TypeEq<A, C, B, D> lift2(TypeEq<C, D> cd) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a bit concerned about the removal of those type inference helpers (Lift2TypeEq, Lift3TypeEq). I think they can be useful. @gneuvill could you add them back in some way?

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.

3 participants