nubank/state-flow

Argument order in `run` and `run*` are opposite(ish) and confusing

dchelimsky opened this issue · 0 comments

These two calls have the same behavior:

(run flow initial-state-value)
(run* {:init fn-that-returns-initial-state} flow)

The fact that the flow appears in a different position is confusing. We should consider a new function name (e.g. frun or runf or whatever) and better align the different versions.