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

1716 Generalize syntax of arrow expressions #1763

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

michaelhkay
Copy link
Contributor

Fix #1716

@michaelhkay michaelhkay added XPath An issue related to XPath XQuery An issue related to XQuery Enhancement A change or improvement to an existing feature Tests Needed Tests need to be written or merged labels Feb 3, 2025
@ChristianGruen ChristianGruen added the Propose Merge without Discussion Change is editorial or minor label Feb 3, 2025
@michaelhkay michaelhkay removed the Propose Merge without Discussion Change is editorial or minor label Feb 3, 2025
@michaelhkay
Copy link
Contributor Author

I dropped the "merge without discussion" label because I'd like to encourage people to review it carefully.

@michaelhkay michaelhkay force-pushed the 1716-simplify-arrow-target branch from c2252a3 to 4dbd9ac Compare February 5, 2025 00:01
<note><p>The expression <code>U => $V(X)(Y)</code> satisfies the grammar, but its meaning
might not be obvious. It is interpreted as being equivalent to <code>$V(X)(U, Y)</code>.
The same applies to the mapping arrow operator: <code>U =!> $V(X)(Y)</code> is
interpreted as <code>for $u in $V return $V(X)($u, Y)</code>. This follows from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"for $u in $V" should be "for $u in $U"

@michaelhkay michaelhkay force-pushed the 1716-simplify-arrow-target branch from 4dbd9ac to c4e10a4 Compare February 18, 2025 18:35
@michaelhkay michaelhkay merged commit 9e7fae6 into qt4cg:master Feb 18, 2025
1 check passed
@michaelhkay michaelhkay added Tests Added Tests have been added to the test suites In Saxon 13 The feature is implemented in the Saxon 13 development branch and removed Tests Needed Tests need to be written or merged labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A change or improvement to an existing feature In Saxon 13 The feature is implemented in the Saxon 13 development branch Tests Added Tests have been added to the test suites XPath An issue related to XPath XQuery An issue related to XQuery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable lookahead needed for ArrowTarget
3 participants