Skip to content

Is there a proposal for language-level support for interfaces? #23486

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
Paladynee opened this issue Apr 6, 2025 · 2 comments
Closed

Is there a proposal for language-level support for interfaces? #23486

Paladynee opened this issue Apr 6, 2025 · 2 comments

Comments

@Paladynee
Copy link

Paladynee commented Apr 6, 2025

I'd like to know if there's any proposal or future plans regarding interface support in language level in Zig, and if there is, get a link to it.

Interfaces in this context refer to things like std.mem.Allocator, where an opaque pointer and a vtable is bundled together in a struct.

If not, I'd like to make one myself.

@Paladynee Paladynee changed the title Is there a proposal for langauge-level support for interfaces? Is there a proposal for language-level support for interfaces? Apr 6, 2025
@mlugg
Copy link
Member

mlugg commented Apr 6, 2025

There is no such proposal; the closest thing is #10184.

Please do not file a proposal to change the language.

@mlugg mlugg closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2025
@Paladynee
Copy link
Author

thanks, this was what i was looking for

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