2 ms·
I just landed a patch this past week which changed our `fail!` macro to `panic!`, so there's some small convergence there, too :)
by steveklabnik 12y ago
I just landed a patch this past week which changed our `fail!` macro to `panic!`, so there's some small convergence there, too :)
- NateDad 12y agoI do like the connotation of "panic" - I envision Kermit running around flailing his arms :)
- steveklabnik 12y agoYeah, it's very evocative. It also properly conveys that it's for extreme states, not usual error handling. The motivation was actually to tease apart the two meanings of 'fail': fail! or Result? Now, fail means Result, and panic means panic! (previously fail!). Most of the patch was actually updating _all_ of the mentions of fail in the documentation, to switch some of them to panic.