News for hackers. Stuff that matters.
Re:The Next Step for Generics by umanwizard on Tuesday June 16, 2020 @11:11PM (#23547318)
In rust, errors are difficult to ignore (you need to either allow compiler warnings, which AFAICT nobody sane does, or write something like `let _ = my_fallible_function();` which makes the intent to ignore the error explicit).

Perhaps more fundamental: it’s impossible to accidentally use an uninitialized “success” return value when the function actually failed, which is easy to do in C, C++, Go, etc.

Re:The Next Step for Generics by ori_b on Wednesday June 17, 2020 @12:03AM (#23547639)
Or .unwrap(), which I see relatively often.
Re:The Next Step for Generics by umanwizard on Wednesday June 17, 2020 @08:43AM (#23550684)
That’s not ignoring errors, it’s explicitly choosing what to do in case of one (crash).