by datadeft · 1y ago · 0 comments
Unsafe code is not inherently faster than safe code, though sometimes, it is. Unsafe is for when you want to do something that is legal, but the compiler cannot understand that it is legal.
opening stdout with file handle 0 is not guaranteed safe by the compiler. there's an "unsafe" somewhere in there.