rust/src/libstd
Alex Crichton 7bb498bd7a Mass rename if_ok! to try!
This "bubble up an error" macro was originally named if_ok! in order to get it
landed, but after the fact it was discovered that this name is not exactly
desirable.

The name `if_ok!` isn't immediately clear that is has much to do with error
handling, and it doesn't look fantastic in all contexts (if if_ok!(...) {}). In
general, the agreed opinion about `if_ok!` is that is came in as subpar.

The name `try!` is more invocative of error handling, it's shorter by 2 letters,
and it looks fitting in almost all circumstances. One concern about the word
`try!` is that it's too invocative of exceptions, but the belief is that this
will be overcome with documentation and examples.

Close #12037
2014-02-20 09:16:52 -08:00
..
comm Fix sending/try_recv on channels off the runtime 2014-02-19 16:53:00 -08:00
fmt Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
io Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
num move extra::test to libtest 2014-02-20 16:03:58 +08:00
path move extra::test to libtest 2014-02-20 16:03:58 +08:00
rand move extra::test to libtest 2014-02-20 16:03:58 +08:00
rt move extra::test to libtest 2014-02-20 16:03:58 +08:00
sync Spellcheck library docs. 2014-02-18 08:05:35 +11:00
unstable Made fail_bounds_check more careful with strings. 2014-02-17 19:35:59 -08:00
any.rs
ascii.rs
bool.rs
c_str.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
cast.rs
cell.rs
char.rs
cleanup.rs
clone.rs
cmp.rs
container.rs
default.rs
from_str.rs
gc.rs
hash.rs
hashmap.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
iter.rs Spellcheck library docs. 2014-02-18 08:05:35 +11:00
kinds.rs Fix all code examples 2014-02-14 23:49:22 -08:00
lib.rs rustdoc: Show macros in documentation 2014-02-19 01:10:31 -08:00
libc.rs Implement named pipes for windows, touch up unix 2014-02-16 18:46:01 -08:00
local_data.rs
logging.rs Fix all code examples 2014-02-14 23:49:22 -08:00
macros.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
managed.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
mem.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
ops.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
option.rs
os.rs Fix getting/setting huge env vars on windows 2014-02-19 08:11:00 -08:00
owned.rs
prelude.rs auto merge of #12321 : bjz/rust/remove-real, r=alexcrichton 2014-02-17 22:16:51 -08:00
ptr.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
rc.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
reference.rs
reflect.rs
repr.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
result.rs
rtdeps.rs
run.rs Allow configuration of uid/gid/detach on processes 2014-02-16 16:01:03 -08:00
str.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
task.rs Clean up std::task docs, make TaskBuilder a real builder 2014-02-16 15:34:02 -08:00
to_bytes.rs
to_str.rs Delegate ToStr implementation to Show for tuples 2014-02-16 19:12:28 +11:00
trie.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
tuple.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
unicode.rs
unit.rs
vec_ng.rs std: clean up ptr a bit 2014-02-15 12:11:41 -05:00
vec.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00