Closed aiba closed 2 years ago
Looks like (satisfies? IStateUpdater (fn [] ...)) is true, so if you call updater with a function, you get an infinite loop because (fn spread-updater [y] ...) will also satisfy IStateUpdater, and then updater will recurse forever.
(satisfies? IStateUpdater (fn [] ...))
(fn spread-updater [y] ...)
IStateUpdater
updater
@aiba yeah that should be calling u instead of updater
u
Looks like
(satisfies? IStateUpdater (fn [] ...))
is true, so if you call updater with a function, you get an infinite loop because(fn spread-updater [y] ...)
will also satisfyIStateUpdater
, and thenupdater
will recurse forever.