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

Ability to get the fully resolved name of functions and types #986

Open
primoly opened this issue Jun 26, 2024 · 0 comments
Open

Ability to get the fully resolved name of functions and types #986

primoly opened this issue Jun 26, 2024 · 0 comments

Comments

@primoly
Copy link
Contributor

primoly commented Jun 26, 2024

In my experience, it is currently really difficult to get the complete, fully resolved name of a function or type. This is especially annoying when one needs not just the name itself but also the namespace. So it would be great to have the ability to get the fully resolved name of functions and types from the perspective of a world. By “fully resolved” I mean that it includes (where applicable) the package, interface and the with as renamed function/type name.

Something kind of like:

struct FullName {
    package: Option<PackageName>,
    interface: Option<String>,
    name: Option<String>,
    as_: Option<String>,
}

I haven’t completely figured out how names (and namespaces) work in Wit yet, so this may look different in practice.

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