我很想听听Clojure大师们在层次结构中管理状态的建议.我发现我经常使用{:structures {:like {:this {:with {:many 'levels}} } } },如果我想跟踪多个级别的状态变化,通过抛出值的原子(atom {:like (atom 'this)} ),我发现自己认为这一定是错的.通常最好只在顶层使用一个原子,并且在地图中没有任何值作为值?
{:structures {:like {:this {:with {:many 'levels}} } } }
(atom {:like (atom 'this)} )
state clojure hierarchy
clojure ×1
hierarchy ×1
state ×1