Hacker News new | past | comments | ask | show | jobs | submit login
Colored Functions Are Good (danmailloux.com)
4 points by liamswayne 4 months ago | hide | past | favorite | 1 comment



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




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

Search: