Reflections on Haskell and Rust

3 runeks 1 7/4/2025, 10:51:16 AM academy.fpblock.com ↗

Comments (1)

runeks · 7h ago
Regarding the shadowing example, you probably wouldn't write

  config <- loadConfig
  config' <- validateConfig config
  config'' <- mergeDefaults config'
in Haskell but rather

  config <- mergeDefaults =<< validateConfig =<< loadConfig