Re:Green vs. Brown Programming Languages
by astrange on Thursday April 22, 2021 @07:21PM
(#26909313)
The popular syntax for this in newer imperative languages seems to be async/await, although I think I only like Swift's implementation. (unfair statement since I haven't used the rest much)
[ Parent
| on HN ]
The cool thing about the syntax in Haskell is it’s not tied specifically to async, you can use it for synchronous IO, business logic, parsers, etc. It makes for small context switches when working on different parts of an application.
To adopt it in other languages don't you need non-strict evaluation, at which point it's hard to stop yourself from becoming Haskell?