Skip to content

Make TypeEq and its inner types interfaces#31

Open
gneuvill wants to merge 3 commits into
masterfrom
typeeq_opt
Open

Make TypeEq and its inner types interfaces#31
gneuvill wants to merge 3 commits into
masterfrom
typeeq_opt

Conversation

@gneuvill

@gneuvill gneuvill commented May 25, 2017

Copy link
Copy Markdown
Contributor

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 clinuxrulz and jbgi May 26, 2017 07:06

@clinuxrulz clinuxrulz left a comment

Copy link
Copy Markdown

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
Copy Markdown
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