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

Switch to visible type applications #27

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

sigma-andex
Copy link
Owner

No description provided.

@artemisSystem
Copy link
Collaborator

I noticed the documentation comments are not updated, they still show proxy syntax. I might change them later if i have time.

Another question that pops up for me is, now that the type signatures are shorter because they don't have a proxy in them, maybe we could have them directly in the functions, instead of an alias you have to look up? Maybe we could add some other, more general shortcuts: For example, we could have
index :: forall @m n elem. NonNegative m => NonNegative n => Compare m n LT => vect n elem -> elem
instead of
index :: forall @m n elem. Common.Index Vect m n elem.
A bit longer, but more readable and understandable at a glance, in my opinion. This is just an idea, would love to hear thoughts on it.

@sigma-andex
Copy link
Owner Author

Yeah I was thinking the same. Somehow the type aliases are a bit annoying, but on the other hand, it would be a lot of (error-prone) copy-paste....

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.

2 participants