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

Add interfaces - but the right way #7

Open
ehm2097 opened this issue Nov 8, 2021 · 1 comment
Open

Add interfaces - but the right way #7

ehm2097 opened this issue Nov 8, 2021 · 1 comment

Comments

@ehm2097
Copy link

ehm2097 commented Nov 8, 2021

(I know it's a bit late for this but i just watched the 2014 presentation and couldn't resist to "enhance" a suggestion made by someone at the end of it)

If this language will ever have interfaces, these should be implemented correctly (unlike most languages do). Declaring a class and specifying which interfaces it implements is for weaklings; anyone can do that. A really good programmer should be able to manage the opposite: the interface declaration that specifies all classes implementing that interface.

Of course, the compiler should check and the interface declaration should be considered invalid if there is any unspecified implementing class within the codebase (but under no circumstances should the compiler point to the offending class, it's the interface declaration that's wrong).

@barkermn01
Copy link

Error "interface reference not found"

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