Mac@programming.dev to Python@programming.dev · 1 year agoPython errors as valueswww.inngest.comexternal-linkmessage-square17fedilinkarrow-up145arrow-down13cross-posted to: [email protected]
arrow-up142arrow-down1external-linkPython errors as valueswww.inngest.comMac@programming.dev to Python@programming.dev · 1 year agomessage-square17fedilinkcross-posted to: [email protected]
minus-squareCodeMonkey@programming.devlinkfedilinkarrow-up4arrow-down1·1 year agoThey forgot the Erlang approach: throw exceptions but never catch them. If you are throwing an exception either your code is wrong or your system is bad. In either case, you should crash violently and let another instance handle the retry.
minus-squarecucumber_sandwich@lemmy.worldlinkfedilinkarrow-up1·1 year agoDo they then they extensively use algebraic data types like rusts Option?
They forgot the Erlang approach: throw exceptions but never catch them. If you are throwing an exception either your code is wrong or your system is bad. In either case, you should crash violently and let another instance handle the retry.
Do they then they extensively use algebraic data types like rusts Option?