Skip to content

Add ?// (Destructuring Alternative Operator) support #274

@A4-Tacks

Description

@A4-Tacks
$ jq  -n '{x:1} as [$x] ?// {$x} | $x'
1
$ jaq -n '{x:1} as [$x] ?// {$x} | $x'
Error: expected |
  ╭─[<inline>]
  │
1 │ {x:1} as [$x] ?// {$x} | $x
  ┆               ┬            
  ┆               │            
  ┆               ╰───────────── unexpected token
──╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions