Hacker News new | past | comments | ask | show | jobs | submit
How are merge conflicts handled in Clojure, in that picture?
Latest one wins. But you can keep a reference to the old, unchanged structure around, too. This is why immutability is important.

``` (let [a {:greeting "hello" :name "world"} b (merge a {:greeting "hi"})] [(:greeting a) (:greeting b)]) ; => ["hello" "hi"] ```