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

Could we allow overloading of constructors? #90

Open
astump opened this issue May 29, 2019 · 0 comments
Open

Could we allow overloading of constructors? #90

astump opened this issue May 29, 2019 · 0 comments
Labels
proposal A feature / fix that requires some internal discussion.

Comments

@astump
Copy link
Contributor

astump commented May 29, 2019

What if local type inference knows the expected type for an application of an overloaded constructor? Then it would know which constructor it is. Otherwise, maybe the user could use some fully annotated ctor name like Nat.succ to distinguish it from Ord.succ?

@astump astump added the proposal A feature / fix that requires some internal discussion. label May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal A feature / fix that requires some internal discussion.
Projects
None yet
Development

No branches or pull requests

1 participant