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

Revisit evaluation orderings #60

Open
MiSawa opened this issue Feb 21, 2022 · 1 comment
Open

Revisit evaluation orderings #60

MiSawa opened this issue Feb 21, 2022 · 1 comment

Comments

@MiSawa
Copy link
Owner

MiSawa commented Feb 21, 2022

Related to #55, I think we need to revisit all parts of compiler that compiles multiple inner "components" so that the evaluation order of them are the same with that of jq/gojq.

@itchyny
Copy link
Collaborator

itchyny commented Feb 21, 2022

Maybe still different in arguments order?

❯ jq -nc '[1,2,3] | setpath(0,1,2 | [.]; 4,5)'
[4,2,3]
[1,4,3]
[1,2,4]
[5,2,3]
[1,5,3]
[1,2,5]

❯ xq -nc '[1,2,3] | setpath(0,1,2 | [.]; 4,5)'
[4,2,3]
[5,2,3]
[1,4,3]
[1,5,3]
[1,2,4]
[1,2,5]

❯ xq --version
xq 0.2.0-3dc2f51b9f2a022984a912fe72a0dacc35e117ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants