rust/src/libnative/io
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
..
addrinfo.rs libnative: Avoid gai_strerror on windows. 2014-01-24 16:44:16 -05:00
file.rs str: add a function for truncating a vector of u16 at NUL. 2014-02-19 14:09:16 +11:00
mod.rs Implement named pipes for windows, touch up unix 2014-02-16 18:46:01 -08:00
net.rs Implement named pipes for windows, touch up unix 2014-02-16 18:46:01 -08:00
pipe_unix.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
pipe_win32.rs Mass rename if_ok! to try! 2014-02-20 09:16:52 -08:00
process.rs Allow configuration of uid/gid/detach on processes 2014-02-16 16:01:03 -08:00
timer_helper.rs std: Rename unstable::mutex::Mutex to StaticNativeMutex. 2014-02-16 10:13:56 +11:00
timer_other.rs librustc: Remove unique vector patterns from the language. 2014-02-19 16:35:31 -08:00
timer_timerfd.rs std: Add init and uninit to mem. Replace direct intrinsic usage 2014-02-09 00:17:40 -08:00
timer_win32.rs Fixing remaining warnings and errors throughout 2014-02-03 10:39:23 -08:00