2 ms·
> How do you deal with simple things like exceptions and string interpolation? While I agree string interpolation isn't convenient, exceptions in Haskell are g
by kccqzy 6y ago
> How do you deal with simple things like exceptions and string interpolation?
While I agree string interpolation isn't convenient, exceptions in Haskell are great. You can throw exceptions in pure code (throw upon evaluation), in IO (throw when sequenced), catch them, inspect them by doing type down casting, etc, all without pulling a dependency. It's even better than Rust. (In Rust I had to use the anyhow crate to get back some basic features I thought should be present by default.)