News for hackers. Stuff that matters.
Re:Zig's new plan for asynchronous programs by debugnik on Tuesday December 02, 2025 @05:32PM (#46127859)
In a sense, kinda? The function colour problem is that you can't call an async API from a non-async caller without modifying the entire call chain (or blocking the full thread). In async/await languages the conflict comes from changing the return types; the syntax is orthogonal.

Maybe in practice some properties of code are better off being whole-program than represented as types, even if they're less modular or harder to check.

Also thanks for the reference, I haven't touched Haskell in ages; I'm more of an F# and OCaml guy.

Re:Zig's new plan for asynchronous programs by iviv on Wednesday December 03, 2025 @02:49PM (#46139109)
Right. In Haskell we want to maintain the pure/impure distinction so… it’s not a problem I guess?