3 ms·
Feels like an un-compiler-assisted State monad. IMO threading an object through is probably the best method, unfortunately. You could use an Immutable Record o
by 15155 11y ago
Feels like an un-compiler-assisted State monad.
IMO threading an object through is probably the best method, unfortunately. You could use an Immutable Record or something to help keep it under control.
I would personally just use async/await to more explicitly handle the sequencing/binding.
- grandalf 11y agoAgreed. I think I'll refactor... thanks for the example.