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

Kind enumeration description #305

Merged
merged 3 commits into from
Jun 15, 2020
Merged

Kind enumeration description #305

merged 3 commits into from
Jun 15, 2020

Conversation

Odomontois
Copy link
Member

@Odomontois Odomontois commented Jun 9, 2020

This is an internal description of enumeration of kinds to shorten names for exotic things

@Odomontois Odomontois added the docs Documentation and wiki label Jun 9, 2020
Copy link
Member

@catostrophe catostrophe left a comment

Choose a reason for hiding this comment

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

And how to deal with variances?

@Odomontois
Copy link
Member Author

And how to deal with variances?

Right now it would create too much complexity.
We can consider variance information later and have alternative numeration for those, postfixing with Kc123 or something like that

@Odomontois
Copy link
Member Author

Added similar page for calculations for variance-enabled numbers

@catostrophe
Copy link
Member

Nice idea on encoding hole trees. But it's not mnemonic, not usable nor comprehendable without the codec. Is it supposed to be used internally to guarantee name uniqueness and determinism? Or did you imply using it in public APIs?

@Odomontois
Copy link
Member Author

Odomontois commented Jun 10, 2020

It was supposed to use only for internal API.
E.g. something like

trait SummonerKn17[T[f[_, _], e, a]]{
   def apply[F[_, _], E, A](implicit inst: T[F, E, A]): T[F, E, A] = inst
}

And then

trait BiContext[T[f[_, _], e, a]]

object BiContext extends SummonerKn17[BiContext]

@Odomontois Odomontois merged commit 75ab7e7 into master Jun 15, 2020
@Odomontois Odomontois deleted the kind-enumeration branch September 18, 2020 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation and wiki
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants