rust/src/libextra
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
..
c_vec.rs remove duplicate function from std::ptr (is_null, is_not_null, offset, mut_offset) 2014-02-13 12:54:17 -08:00
enum_set.rs Rename Bitwise::population_count to Bitwise::count_ones and add Bitwise::count_zeros 2014-02-17 13:55:06 +11:00
json.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
lib.rs move extra::test to libtest 2014-02-20 16:03:58 +08:00
stats.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
tempfile.rs extra: Remove io_error usage 2014-02-03 09:32:33 -08:00
time.rs extra: Remove io_error usage 2014-02-03 09:32:33 -08:00
unicode.rs Register new snapshots 2013-12-03 14:31:54 -08:00
url.rs auto merge of #12231 : wycats/rust/url_path_parse, r=alexcrichton 2014-02-19 12:51:48 -08:00
workcache.rs moved collections from libextra into libcollections 2014-02-07 19:49:26 +13:00