You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the intended semantics of +=, -= then? Should the jq manual be updated to reflect this behaviour? @itchyny, @pkoppstein, do you have any idea about this?
(I discovered this issue while porting @itchyny's Brainfuck interpreter to jaq, which involved changing .output += [.memory[.pointer]] to .memory[.pointer] as $m | .output += [$m] due to this issue.)
The text was updated successfully, but these errors were encountered:
01mf02
changed the title
Semantics of
Semantics of +=, -=, ...
Oct 7, 2022
The jq manual states:
However, I believe that this is actually not true in jq. Proof:
What is the intended semantics of
+=
,-=
then? Should the jq manual be updated to reflect this behaviour?@itchyny, @pkoppstein, do you have any idea about this?
(I discovered this issue while porting @itchyny's Brainfuck interpreter to jaq, which involved changing
.output += [.memory[.pointer]]
to.memory[.pointer] as $m | .output += [$m]
due to this issue.)The text was updated successfully, but these errors were encountered: