4 ms·
Basically, in JS you could have multiple colors (with generators that imitate `do` notation pretty well) and you can obviously implement any monadic structure w
by inglor 5y ago
Basically, in JS you could have multiple colors (with generators that imitate `do` notation pretty well) and you can obviously implement any monadic structure with bind you'd want.
The thing is: having less generic abstractions (and fewer colors) makes certain things (like debugging tooling and assumptions when reading code) much much nicer.
- fbn79 5y agoJavascript must solve the fundamental problem that generators are (by implementation) not clonable. So generators can not be used generally as do notation.