Fork me on GitHub
#xtdb
<
2021-06-20
>
henrik14:06:17

I think the thing that bothers me the most about Crux is that you had the opportunity to call pull yoink, and missed it.

😄 6
🙂 2
3
👌 2
Jacob O'Bryant14:06:57

it's not out of beta yet, so there's still time! they already renamed it from eql/project to pull

👍 2
henrik15:06:27

It’s a name looking for a feature!

Darin Douglass21:06:08

Ah yes, the good ol’ yoink and plop

allandaviesza05:06:38

yoink invokes my PTSD from my UO days

henrik09:06:54

Oh dear, I meant to joke, not to trigger a PTSD. I'm so sorry.

allandaviesza10:06:00

I'm also joking, so no stress

Thomas Moerman16:06:48

We demand at least a yoink alias in the official Crux lib :fist:

☝️ 3
henrik18:06:28

> An exclamation that, when uttered in conjunction with taking an object, immediately transfers ownership from the original owner to the person using the word regardless of previous property rights. > Though I cherished my automobile, I had to purchase a new one when my second cousin came up from behind me and politely exclaimed, "Yoink" while taking my car keys.

😆 3
jarohen19:06:06

(s/def :crux.query/find-arg
  (s/and (s/or :logic-var crux.query/logic-var?
               :pull (s/cat :pull #{'pull}
                            :logic-var crux.query/logic-var?
                            :pull-spec :edn-query-language.eql/query)
               :yoink (s/cat :yoink #{'yoink}
                             :logic-var crux.query/logic-var?
                             :pull-spec :edn-query-language.eql/query)
               :aggregate :crux.query/aggregate)
         (s/conformer (fn [[arg-type arg]]
                        (if (= arg-type :yoink)
                          [:pull arg]
                          [arg-type arg]))
                      identity)))
your wish is my command - include this in your Crux app 🙂 (disclaimer: support not guaranteed in future Crux versions 😄)

jarohen19:06:46

I trust you can write defns for the (c/pull ...) and (c/pull-many ...) 🙂