Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Agreed. I think I'll refactor... thanks for the example.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: