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

Allow omitting type parameters #47

Closed
osa1 opened this issue Jan 8, 2025 · 0 comments
Closed

Allow omitting type parameters #47

osa1 opened this issue Jan 8, 2025 · 0 comments

Comments

@osa1
Copy link
Member

osa1 commented Jan 8, 2025

Now that we can distinguish type constructors from variants in syntax, when a type parameter doesn't have bounds, we should allow omitting it. E.g.

fn f1_explicit[t](a: t): t = a

fn f1_implicit(a: t): t = a

fn f2_explicit[errs](f: Fn(): Result[[E1, ..errs], ()]): Result[[..errs], ()]

fn f2_implicit(f: Fn(): Result[[E1, ..errs], ()]): Result[[..errs], ()]

We may want to do this after #46.

@osa1 osa1 closed this as completed in 11dd424 Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant