Async has been stable for a long time. Coroutines are just syntax sugar AFAIK.
- 0 Posts
- 4 Comments
What do you mean by “abstract away”, and what about it is exclusive to headers?
Eg most languages have something like a trait or interface wherein you can put a list of definitions (optionally with a default aka “inline” implementation) which are then actually implemented elsewhere. This is considered useful by everyone because it allows multiple implementations to be associated with 1 name. They are generally not desired in cases where only 1 implementation will ever be written.
AFAIK the only use case where headers accomplish the same is if they’re treated as documentation for an API that could be implemented by any library.
Admittedly certain programming styles benefit immensely from headers, despite the drawbacks to “design as you go” programming.
- jjj@lemmy.blahaj.zonetoProgrammer Humor@programming.dev•Kind of impressive when you think about it3·21 days ago
I would (probably not literally) wager that by “this” they meant *looks around at entire world*…
this
I think there is something to be said for keeping a language simple, though. The basic semantics of a language should be comprehensible to everyone, let the standard library have all the wacky stuff someone wanted decades ago. (macros - the lisp kind, not the C kind - make this easier)