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

Add documentary names to callback function signatures #1697

Open
michaelhkay opened this issue Jan 13, 2025 · 1 comment
Open

Add documentary names to callback function signatures #1697

michaelhkay opened this issue Jan 13, 2025 · 1 comment
Labels
Editorial Minor typos, wording clarifications, example fixes, etc. XQFO An issue related to Functions and Operators

Comments

@michaelhkay
Copy link
Contributor

If PR #1696 is accepted we can add documentary names to the parameters of callback function signatures, for example fn:filter can become

fn:filter(
  $input as item()*, |  
  $predicate as fn($item as item(), $position as xs:integer) as xs:boolean? |  
) as item()*

and we can (if we need to) use the parameter names in the prose

@ChristianGruen
Copy link
Contributor

Looks good. Related: #981.

@ChristianGruen ChristianGruen added XQFO An issue related to Functions and Operators Editorial Minor typos, wording clarifications, example fixes, etc. labels Jan 13, 2025
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. XQFO An issue related to Functions and Operators
Projects
None yet
Development

No branches or pull requests

2 participants