Skip to content

Multiple Interface instanciations in a World (Multiton) #476

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

Closed
cleanerx opened this issue Mar 19, 2025 · 2 comments
Closed

Multiple Interface instanciations in a World (Multiton) #476

cleanerx opened this issue Mar 19, 2025 · 2 comments

Comments

@cleanerx
Copy link

I have interfaces which are structured identically. Example

package local:demo;

interface foo {
}

world x {
export foo1: foo;
export foo2: foo;
}

This is a desirable design if you happen to have multiple interfaces of the same syntax and semantic.
Component Frameworks like OSGi or Spring Boot offer such things and I wonder about the availability in wit?
Is there any other mechanism that could be utilized to model such a thing ?

@lukewagner
Copy link
Member

You're right, I think we should support this too. I think this is the same feature request as in #287, which has some discussion.

@lukewagner
Copy link
Member

I'll close since I think this is a dup of #287, but feel free to open if I'm mistaken.

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

2 participants