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

There's no way to refer to bar if foo.bar is in scratch.u #5268

Closed
mitchellwrosen opened this issue Aug 8, 2024 · 1 comment
Closed

There's no way to refer to bar if foo.bar is in scratch.u #5268

mitchellwrosen opened this issue Aug 8, 2024 · 1 comment
Labels

Comments

@mitchellwrosen
Copy link
Member

If a Unison file has foo.bar bound...

foo.bar = ...

then there's no way to refer to something named bar, outside the file:

whatever =
  ... bar ... -- resolves to `foo.bar`

This seems inconsistent with how suffix-based name resolution works elsewhere (i.e. if both bar and foo.bar are in the namespace, then bar unambiguously refers to bar, because it's an exact match), and furthermore is a big problem for operations like update, upgrade, and merge, which have a print-then-parse loop.

@mitchellwrosen
Copy link
Member Author

Fixed by #5276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant