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

Interface composition #908

Open
dalance opened this issue Aug 23, 2024 · 0 comments
Open

Interface composition #908

dalance opened this issue Aug 23, 2024 · 0 comments
Labels
lang Language design

Comments

@dalance
Copy link
Collaborator

dalance commented Aug 23, 2024

If interface can have interface instances as the member, interface composition can be achived like below.
Syntax and use case should be more considerd.

interface Read {
}

interface Write {
}

interface RW {
    inst read: Read;
    inst write: Write
}

Refs: https://www.reddit.com/r/FPGA/comments/1exhbtj/comment/ljdyafm/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

@dalance dalance added the lang Language design label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang Language design
Projects
None yet
Development

No branches or pull requests

1 participant