3 ms·
> Currently there is definitely a case where there are too many calls in Rust that will just panic. So, as a newcomer to rust, how can I identify which calls c
by aidanhs 12y ago
> Currently there is definitely a case where there are too many calls in Rust that will just panic.
So, as a newcomer to rust, how can I identify which calls could blow up my single-task app? The docs on println! (http://doc.rust-lang.org/std/macro.println!.html http://doc.rust-lang.org/std/macro.println!.html) say nothing about this.
I could use task::try everywhere (http://doc.rust-lang.org/guide-tasks.html#handling-task-panics http://doc.rust-lang.org/guide-tasks.html#handling-task-pani...), but I'd prefer to have an indication of which functions are pure and cannot error (modulo bugs).