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

Namespaces #9

Open
Toxaris opened this issue Mar 29, 2015 · 0 comments
Open

Namespaces #9

Toxaris opened this issue Mar 29, 2015 · 0 comments

Comments

@Toxaris
Copy link
Collaborator

Toxaris commented Mar 29, 2015

I'm confused / not entirely happy with the way destructor names are namespaced. Currently, if I understand the source code (and prelude.uro) correctly, destructor names are disambiguated by the type of their receiver (aka. the "inner type") and sometimes (or always?) also by their arity.

While that works great for destructors, it wouldn't work so well for constructors and functions. But I would much prefer if name lookup rules would treat all of destructor names, constructor names and function names as similar as possible.

(This issue is mostly for discussion, I'm currently refactoring Checker.hs anyway and could add these changes after we decide how name lookup should work).

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

No branches or pull requests

1 participant