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

Manual: Explain VERB Definitions With Multiple IDs #128

Open
6 tasks
tajmone opened this issue Sep 23, 2021 · 0 comments
Open
6 tasks

Manual: Explain VERB Definitions With Multiple IDs #128

tajmone opened this issue Sep 23, 2021 · 0 comments
Assignees
Labels
📖 Alan Manual Issues relating to "The Alan Language Manual" 💡 enhancement A new feature or enhancement request/proposal ⚠️ important Priority: High

Comments

@tajmone
Copy link
Collaborator

tajmone commented Sep 23, 2021

In §3.11. VERBs, the Manual doesn't go into much details about how VERB definitions with multiple IDs work:

Verb take, get
  ...
End Verb take.

[...]

If there is more than one identifier in the list, as in the example above, this can be viewed as a shorthand for declaring identical checks and bodies for all the verbs in the list. This will create synonymous actions for different verbs at the level of the verb declaration. They may differ in implementation at other places, i.e. if they are declared in the same verb declaration on one level in an inheritance tree, they can still have different bodies on another level.

I think that this topic deserves a sub-section of its own:

  • Section title? — what's this called, "multiverb definitions"?
  • What are the prerequisites for defining multiple verbs at once?
    • Syntax compatibility criteria?
    • Parameter must be same named?
    • Other?
  • Provide a new and better example.
@tajmone tajmone added 💡 enhancement A new feature or enhancement request/proposal 📖 Alan Manual Issues relating to "The Alan Language Manual" labels Sep 23, 2021
@tajmone tajmone added this to the Alan Manual Improve Contents milestone Sep 23, 2021
@tajmone tajmone pinned this issue Sep 23, 2021
@tajmone tajmone added the ⚠️ important Priority: High label Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📖 Alan Manual Issues relating to "The Alan Language Manual" 💡 enhancement A new feature or enhancement request/proposal ⚠️ important Priority: High
Projects
None yet
Development

No branches or pull requests

2 participants