-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Interface implementation #18
Comments
Personally not a fan of this syntax. It feels slightly confusing. Thought of this way:
This would also allow calling multiple interfaces and their implementations followed by a comma. I think this way it clearly shows that struct Bar is implementing the Foo interface. The shown example on your end is slightly confusing on what it’s trying to achieve imo. |
I might have to think abt it a bit more, but that looks great as a start! |
When implementing this, I'll improve the In the future I want there to be a pre-defined interface, that allows the This would be defined by the compiler internally and could be invoked by any type:
|
Draft on how interfaces will be implemented:
The main question is: how should the syntax for implementing
Foo
forBar
look like?The text was updated successfully, but these errors were encountered: