Skip to content

How to: Avoid Pitfalls

Nico Williams edited this page Jul 29, 2015 · 29 revisions

Cartesian Products

Nobody expects cartesian products. But that's exactly what jq is geared to produce at the slightest misstep.

Generator Expressions in Assignment Right-Hand Sides

Generator expressions in assignment RHS expressions are likely to surprise users.

Backtracking (empty) in Assignment RHS Expressions and Reductions.

Ditto.

Multi-arity Functions and Comma/Semi-colon Confusability

foo(a,b) is NOT the same as foo(a;b). If foo/1 and foo/2 are defined then you'll silently get the wrong behavior.

Clone this wiki locally