Fork me on GitHub
#pathom
<
2021-02-11
>
souenzzo19:02:54

pathom3 placeholders can replace values inside "entity"

(p.eql/process {} `[{(:>/a {:a 1})
                     [:a
                      {(:>/a {:a 2})
                       [:a]}]}])
                    
=> {:>/a {:a 1, :>/a {:a 2}}}
This is a explicit behavior?

wilkerlucio20:02:52

yup, and there are examples mentioning this specific behavior

✔️ 4
wilkerlucio20:02:47

from docs:

(p.eql/process env
  [{'(:>/bret {::first-name "Bret" ::last-name "Victor"})
    [::full-name
     {'(:>/bard {::first-name "Bard"})
      [::full-name]}]}])
; {:>/bret
;   {:com.wsscode.pathom3.docs.placeholder/full-name "Bret Victor",
;    :>/bard
;    {:com.wsscode.pathom3.docs.placeholder/full-name "Bard Victor"}}}

bananadance 4