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

Include the required supertype in interface declarations #26

Closed
rafaqz opened this issue Oct 14, 2023 · 1 comment · Fixed by #31
Closed

Include the required supertype in interface declarations #26

rafaqz opened this issue Oct 14, 2023 · 1 comment · Fixed by #31

Comments

@rafaqz
Copy link
Owner

rafaqz commented Oct 14, 2023

I'm thinking it may make sense if interface declarations have to include the required supertype, like:

@interface SomeInterface SomeType conditions docs

For interfaces without supertypes, like iteration, this would be Any

@interface IterationInterface Any conditions docs

Originally this was not included because the Any case is redundant. But now I think it might be nicely self documenting -
wherever there is Any its a trait only interface.

@gdalle any thoughts?

@rafaqz rafaqz changed the title Include the type in interface declarations Include the required supertype in interface declarations Oct 14, 2023
@gdalle
Copy link
Collaborator

gdalle commented Oct 15, 2023

I like that idea! And it's probably a minor code change

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

Successfully merging a pull request may close this issue.

2 participants