14 ms·
Colored Functions Are Good
- recursivedoubts 3y agogoing the other direction, in https://hyperscript.org https://hyperscript.org, we decided colored functions are bad, and so, as much as possible, made the runtime responsible for resolving Promises: https://hyperscript.org/docs/#async https://hyperscript.org/docs/#async this does a reasonable job of doing away w/ the sync/async distinction. The theory here is that, as someone doing light web scripting, that's something I shouldn't have to worry about. it makes for some neat event-driven control flow w/in the imperative structure of the language: https://hyperscript.org/docs/#async_loops https://hyperscript.org/docs/#async_loops