2 ms·
"Promises aren't inherently an "inner platform". You can certainly make them part of the "base language", like Rust." That's fair, and I will try to update my
by jerf 5y ago
"Promises aren't inherently an "inner platform". You can certainly make them part of the "base language", like Rust."
That's fair, and I will try to update my internal mental model and stop unconditionally referring to them as such. Thank you.
(My primary objection to them is the way they throw away the stack and throw away structured programming as a result, but they're at least less bad if they aren't also an inner platform. :) )
- Nullabillity 5y ago> My primary objection to them is the way they throw away the stack and throw away structured programming as a result, Structured concurrency is orthogonal to whether you're using a thread-based or monadic API. Goroutines, for example, are both thread-based and unstructured. On the other hand, you can have concurrency that is structured but still thread-based (like Trio), unstructured but monadic (like Scala's built-in Future type), or both structured and monadic (like Rust's Future type).