neon-mmd@programming.dev to Rust@programming.devEnglish · edit-22 years agoBlog Post: How To Wrap Your Errors With Enums When Using Error-Stackbetterprogramming.pubexternal-linkmessage-square3fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkBlog Post: How To Wrap Your Errors With Enums When Using Error-Stackbetterprogramming.pubneon-mmd@programming.dev to Rust@programming.devEnglish · edit-22 years agomessage-square3fedilink
minus-squareSorteKanin@feddit.dklinkfedilinkEnglisharrow-up1·2 years agoI guess what I don’t really understand still is what advantage this provides over something like anyhow.
minus-squaresnaggen@programming.devlinkfedilinkEnglisharrow-up0·2 years agoError stack will give will print the full stack of errors and their corresponding line in the code. Much like a backtrace, but for errors.
minus-squareSorteKanin@feddit.dklinkfedilinkEnglisharrow-up1·2 years agoDoesn’t anyhow also give a stack of errors? Although not with lines, that does sound useful.
I guess what I don’t really understand still is what advantage this provides over something like anyhow.
Error stack will give will print the full stack of errors and their corresponding line in the code. Much like a backtrace, but for errors.
Doesn’t anyhow also give a stack of errors? Although not with lines, that does sound useful.