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 "fn" as abbreviation for "function" in ItemType syntax #1192

Closed
michaelhkay opened this issue May 7, 2024 · 2 comments
Closed

Allow "fn" as abbreviation for "function" in ItemType syntax #1192

michaelhkay opened this issue May 7, 2024 · 2 comments
Labels
Editorial Minor typos, wording clarifications, example fixes, etc. XPath An issue related to XPath

Comments

@michaelhkay
Copy link
Contributor

The syntax for inline functions is, by design, similar to the syntax for function tests. So it's confusing that you can abbreviate "function" to "fn" in the first case but not the second.

Open question: what about "declare function" in the XQuery prolog? My instinct is to leave that as it is.

@ChristianGruen ChristianGruen added XPath An issue related to XPath Editorial Minor typos, wording clarifications, example fixes, etc. labels May 7, 2024
@ChristianGruen
Copy link
Contributor

The syntax for inline functions is, by design, similar to the syntax for function tests. So it's confusing that you can abbreviate "function" to "fn" in the first case but not the second.

Sounds good.

Open question: what about "declare function" in the XQuery prolog? My instinct is to leave that as it is.

I agree; we shouldn’t trigger the desire for other abbrv.s like decl(are) var(iable).

@michaelhkay michaelhkay added the PR Pending A PR has been raised to resolve this issue label May 8, 2024
@michaelhkay
Copy link
Contributor Author

Closed by #1197

@ChristianGruen ChristianGruen removed the PR Pending A PR has been raised to resolve this issue label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Editorial Minor typos, wording clarifications, example fixes, etc. XPath An issue related to XPath
Projects
None yet
Development

No branches or pull requests

2 participants