-
Notifications
You must be signed in to change notification settings - Fork 60
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
Clarify naming conventions for link types #231
Comments
I agree that it seems to be missing. It should probably be stated on this page: https://github.com/eiffel-community/eiffel/blob/master/eiffel-syntax-and-usage/event-design-guidelines.md and linked from the links guidelines page you provided. I currently don't have any suggestion on if the link types should be restricted to a certain word class or so, but it sounds reasonable to do to ease for new link types to be defined and to clarify what links should be used for. |
Looking at the existing link types the following patterns (depending on whether the link type allows multiple targets) applies in all or nearly all cases:
Examples:
This probably means that link types always will be nouns, but I think documenting these pattern sentences is more useful than saying "the link type should be a noun". |
Below is an extraction of all link types for all (source) events and I can't find one that doesn't fit the previously described pattern.
|
Description
I couldn't find any explicit naming conventions in regards to link types in the event guidelines.
All existing link types seems to be nouns, is this some unwritten rule? Why is that so? Are verbs not allowed? I'm missing documentation about what is allowed and what is not.
Motivation
It will be easier to understand when/if someone wants extend the protocol.
Exemplification
Extend the documentation about the links object with a clear rule saying what is allowed or not.
Benefits
Clarified documentation.
Possible Drawbacks
None that I can think of.
The text was updated successfully, but these errors were encountered: