Hacker News new | ask | show | jobs
by datadeft 454 days ago
True, however I only saw this happens to achieve max perf. I have very limited experience so this is confirmation bias from my end.
1 comments

An example of unsafe not for performance is when interacting with hardware directly.
or the operating system!

opening stdout with file handle 0 is not guaranteed safe by the compiler. there's an "unsafe" somewhere in there.