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

Allow single-port interfaces with named ports be implemented the same way as with anonymous ports #815

Open
emil14 opened this issue Dec 21, 2024 · 0 comments
Assignees

Comments

@emil14
Copy link
Collaborator

emil14 commented Dec 21, 2024

It seems very reasonable that an interface can just match against the name of the method and the types of the parameters. But that doesn't mean that we should leave the parameter names off the declaration of the interfaces. It means that we can make them verbose AF to indicate exactly what the designer of the interface expected of them semantically. So your way of doing it where a developer can just not give them names at all seems like a step backwards. If someone designs a library like that then I don't want to use it, or to brake when I see him crossing the road.

@emil14 emil14 changed the title https://www.reddit.com/r/ProgrammingLanguages/comments/1hitrtj/comment/m32gb56/ Allow single-port interfaces with named ports be implemented the same way as with anonymous ports Jan 13, 2025
@emil14 emil14 self-assigned this Jan 13, 2025
@emil14 emil14 added the Major label Jan 13, 2025
@emil14 emil14 added the Idea label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant