itchyny

Results 231 comments of itchyny

The `bsearch` filter should support searching from an array of any kind. ``` $ jq -n '[{x:range(3),y:range(3)}] | debug(. == sort) | bsearch({x:1,y:1})' ["DEBUG:",true] 4 ```

I found a regression. On updating tests see my review comment above. ``` $ jq -n '[1,2] | bsearch(2)' 1 $ ./jq -n '[1,2] | bsearch(2)' -3 ```

I think we can reduce special cases, simplify the logic. ```c static jv f_bsearch(jq_state *jq, jv input, jv target) { if (jv_get_kind(input) != JV_KIND_ARRAY) { return type_error(input, "cannot be searched...

Let's discuss on the design of padding function(s) in #2033. Especially on how this is less useful on printing strings with multi-width characters in table-like format in terminals.

Any reference to convince this naming is adopted somewhere else?

Honestly feels kind of a literature that non-native speakers cannot tell the difference (or even worse cannot spell correctly).

I'm very worried about the conflict against the alternative operator.

Instead of extending the current lenient parser, and instead of just skipping the JavaScript-like comments, I would like to make the parser conforming to well-defined specifications. My preference is to...

Will this PR be going to 1.7? We need more discussions on this topic. As a user, it does not mention the formal definition about the comment syntax, so it's...