Comment

Comment by banachtarski

Coroutines let you control where allocations go though? Just override operator new/delete on your promise types. Honestly the feature has been amazing and has cleaned up my code a ton. It’s not for average users. It’s for library writers who then build abstractions on it to make async code easier to write for others. Exposing the coroutine frame as a non opaque structure is simply not practical. Not a super well-informed article IMO.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton