Skip to content

mdo syntax #1

@robertluo

Description

@robertluo

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions