News for hackers. Stuff that matters.
Re:Colored Functions Are Good by recursivedoubts on Monday January 29, 2024 @09:03PM (#39185538)
going the other direction, in 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

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

There are no comments on this comment yet.