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

Public qualified import #2429

Closed
lukaszcz opened this issue Oct 4, 2023 · 0 comments · Fixed by #2819
Closed

Public qualified import #2429

lukaszcz opened this issue Oct 4, 2023 · 0 comments · Fixed by #2819
Assignees
Labels
Milestone

Comments

@lukaszcz
Copy link
Collaborator

lukaszcz commented Oct 4, 2023

It should be possible to write

import A as B public

with the effect of all identifiers in A re-exported qualified with B.

One could also want to use/hide specific identifiers to be re-exported qualified:

import A as B using {a; b} hiding {c; d} public

Perhaps the as syntax should just be merged into open as one of the options?

import A open as B using {a; b} hiding {c; d} public

The idea is that we're moving the identifiers from A into a different scope, either the current one (no as) or into the scope specified with as.

@lukaszcz lukaszcz added this to the 0.5.3 milestone Oct 4, 2023
@jonaprieto jonaprieto modified the milestones: 0.5.3, 0.5.4 Oct 31, 2023
@jonaprieto jonaprieto modified the milestones: 0.5.4, 0.5.5 Nov 17, 2023
@jonaprieto jonaprieto modified the milestones: 0.5.5, 0.5.6 Dec 1, 2023
@jonaprieto jonaprieto modified the milestones: 0.5.6, 0.6.1 Mar 9, 2024
@paulcadman paulcadman modified the milestones: 0.6.1, 0.6.2 Mar 25, 2024
@janmasrovira janmasrovira self-assigned this Jun 8, 2024
@janmasrovira janmasrovira linked a pull request Jun 8, 2024 that will close this issue
@paulcadman paulcadman modified the milestones: 0.6.2, 0.6.3 Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants