The mdo syntax seems like alien in clojure world. especially for the let form. What if we change it to:
(mdo {:keys [x y]} <- get-state
:let [z (+ (* x x) (* y y))]
(modify assoc :z z)
(return z))
The :let form looks for consistent with for, doseq.
Also for modify function, is better to enable (modify [f & params]) style?
The mdo syntax seems like alien in clojure world. especially for the
letform. What if we change it to:The :let form looks for consistent with
for,doseq.Also for
modifyfunction, is better to enable(modify [f & params])style?