Comment

Comment by divan

It's crazy that the programming community even accepted the concept of async/await as a sane one.

Being sync or async is essentially a property of the attention of the caller, not of the action itself. Is "eating a donut" a sync or async action? If I'm focusing all my attention on it, essentially putting all tasks aside (after) - then it's a synchronous action. If I'm reading a book/watching a video/walking/etc, while eating – it's an async action.

How does "func EatADonut() async {}" aka "eating a donut is an inherently async action" even make sense to people?

parent divan 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton