4 ms·
It's the sort of language that'd be great as a partial-coverage DSL in a "patchwork" sort of language, though—like how C has asm{} blocks, or how Rust has unsaf
by derefr 10y ago
It's the sort of language that'd be great as a partial-coverage DSL in a "patchwork" sort of language, though—like how C has asm{} blocks, or how Rust has unsafe{} blocks.
I'd like to, for example, write code in an actor language, where the state and message-passing was handled in an Erlang-y way (tagged tuples, message sending as a primitive, every process has an untyped inbox), but then the "body" of each process, between the IO parts, was Haskell or another parametrically-typed ML. You wouldn't even need any concept of an IO monad: all the side-effects would occur "outside" the haskell{} block.