Hacker News new | ask | show | jobs
by HiJon89 603 days ago
Not sure I follow. The function coloring problem is still solved in that scenario. You can apply structured concurrency to any function (there’s no colors), and any function can contain structured concurrency within it (ie, using structured concurrency doesn’t color your function)
1 comments

You don't follow. Nothing against you in particular, but this is why we've had 10+ years of "color problem" articles and no real solutions. The problem isn't the colors, it's the ergonomics.

The naive solution doesn't work because it turns out the difference between functions that return a value and functions that return a promise matters..

The other approaches destroy ergonomics.