News for hackers. Stuff that matters.
Re:Rust: Not So Great For Codec Implementing by test9753 on Wednesday August 02, 2017 @04:21AM (#14908824)
Existing error handling facilities in Rust may not suit every use-case. For me personally, the difficulty with the `?` operator (and try! macro) is that the File + Line info about the source of error is lost. Also, I want something simpler than the approach taken by the `error-chain` crate. My current solution is to use some custom macros to check for errors and display an execution trace (example here: https://play.rust-lang.org/?gist=a7fb903ce2bbb37914ab380d342... )
Re:Rust: Not So Great For Codec Implementing by tmzt on Wednesday August 02, 2017 @05:57PM (#14915069)
Does rust have __FILE__ etc.? Special constants?