3 ms·
Just noticed this was submitted here. 1) I dislike that .[1] can be both an expression evaluated as a query and a "lambda". Really messes with my mind. 2) In
by BoingBoomTschak 1y ago
Just noticed this was submitted here.
1) I dislike that .[1] can be both an expression evaluated as a query and a "lambda". Really messes with my mind.
2) In my eyes, it's more intuitive because it looks like globbing and everybody knows globbing (this is the reason I use `**` too).
But yeah, this is a bit subjective. What isn't, though, is that I don't plan on adding much more than that; maybe merge, transform and an accessor using the same syntax. So if you know the host language, there's much less friction.
I really see this like Avisynth vs Vapoursynth.
- mpalmer 1y agoBut what you call a query is effectively just a function; it's a transformation on its input. jq calls them streams.
- BoingBoomTschak 1y agoHmmm, I think I see it now that you say it. Still strange to me, probably my brain dragging its feet against the syntax.