Hacker News new | ask | show | jobs
by trusktr 9 days ago
The one downside to be aware of is that, as as a codebase gets bigger and bigger, devs will be looking at code and have less idea what is async and what isn't, making projects potentially more difficult to understand and debug (silent) race conditions.

TC39 EcmaScript spec editors adddd `async`/`await` in JavaScript as a feature to make it visually clear (to humans, and now agents) what is async or not, unlike (e.g.) Java with synchronous-looking calls everywhere and no hint at what is async (or multi-threaded) or not.

In Solid 1.0, at least an undefined or null value would need to be checked to make async values a little more explicit, but maybe even that is not as good as a some hypothetical feature we have yet to invent to make this clear in signals world. (Well, there are some generator prototypes for Solid 2.0 using `yield` syntax, which are ultra clear, but also very verbose).

So I'm curious how the race to battle race conditions is gonna turn out. It might be too magical right now.

We'll see!