4 ms·
With Nix, any network I/O is done through "fixed-output derivations." Fixed-output derivations define the expected hash of their outputs, so if they don't produ
by piperswe 5y ago
With Nix, any network I/O is done through "fixed-output derivations." Fixed-output derivations define the expected hash of their outputs, so if they don't produce the expected output they throw an error.
- JonathanBeuys 5y agoThis seems like another mental trick to me. "Yeah, the function did not produce a different output. It just behaved different by throwing an exception." Still, some other code will read (or "interpret") this behavior and then behave accordingly etc. So what is won here?
- ghostwriter 5y agoNix doesn't allow for recovering from errors
- garethrowlands 5y agoIt's a good trick. The function didn't return a value, so its caller cannot interpret that value and cannot change it behaviour.