pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
paul931224 2021-03-25T23:08:06.056Z

@souenzzo I tried it both ways now, and I have a problem with the backtick.

(edn/read-string "[`(a 1)]")
Execution error at user/eval158 (REPL:1).
Invalid leading character: `
user=>

souenzzo 2021-03-25T23:09:06.056600Z

backtick also a clojure thing, not a edn thing.

paul931224 2021-03-25T23:11:11.058500Z

Yes, and I want to convert a string of a mutation , so I can send it to pathom. Is there any other way? I check out edaname now.

souenzzo 2021-03-25T23:11:47.059Z

(edn/read-string "[(a 1)]") => [(a 1)]

souenzzo 2021-03-25T23:13:17.059800Z

(= (edn/read-string "[(a {:b 42})]")
   '[(a {:b 42})]
   `[(~'a ~{:b 42})]
   (vector (list (symbol "a")
                 (hash-map (keyword "b")
                           42))))
=> true

paul931224 2021-03-30T03:49:52.081400Z

Thank you, I found my misconceptions!

✔️ 1