-
Notifications
You must be signed in to change notification settings - Fork 641
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
Wrap record accessors in an implicit namespace #909
Comments
Hmm, should constructors be in an implicit namespace as well? It would seem that this would avoid having to wrap separate list-like datatypes in namespaces, and at the same time give an easy and predictable way to disambiguate them (List.Nil vs Vect.Nil). This is less good for operator names, though. Perhaps it should only happen to non-infix-named datatypes. What do you think, @edwinb? |
Apropos of this: should we have syntax for qualified operators? I guess Either way, I agree that constructor namespaces'd be nice. At least they'd be useful for a lot of cases. |
The syntax is like |
Oh, right. Never mind then. (That looks nicer too!) |
@edwinb: any objections to my wrapping constructors in an implicit namespace, with the same name as the family? |
I believe this has been implemented for accessors. If constructors should be done, perhaps the issue title should be changed. Note that it is possible to define constructors with additional namespacing explicitly. |
I think this would still be nice to have. |
When elaborating a record
the elaborator should wrap an implicit
namespace A
around the accessors. This would allow them to be more easily overloaded and disambiguated.I'll try to do this when I get a minute. The ticket is just to remember.
The text was updated successfully, but these errors were encountered: