jaq icon indicating copy to clipboard operation
jaq copied to clipboard

New update semantics for `..` (recursion).

Open 01mf02 opened this issue 7 months ago • 0 comments

This PR changes the semantics of .. on the left-hand side of updates.

# `.. |= f` expands to ...
def recurse: ., (.[]? | recurse); recurse |= f   # before
def recurse: (.[]? | recurse), .; recurse |= f   # after

This prevents stack overflows that could previously occur (#139, #235).

01mf02 avatar May 29 '25 10:05 01mf02