These are chat archives for rust-lang/rust

Sep 2015
Peter Atashian
Sep 29 2015 22:24
@cburgdorf First you have to define what a runtime error is.
@cburgdorf If you mean segfaults, those can never happen in safe Rust (unless there's a bug in the unsafe code in one of the libraries you use)
@cburgdorf Rust typically uses Result/Option as its means of error handling. Panicking is not the recommended way of handling errors and so most things avoid it when possible.
Casting using as is defined to always succeed