top | item 7054367 (no title) valtron | 12 years ago Don't points 2 & 3 together imply that anything that uses built-ins, which I assume are implemented with C FFI, is `unsafe`? discuss order hn newest evincarofautumn|12 years ago No, “unsafe” means “evaluate this unsafe block as though it were safe”. This enables Modula-style safe interfaces for unsafe implementations. anon_d|12 years ago Just to clarify, using a `unsafe` block in a function does NOT mean that you have to tag that function as unsafe. steveklabnik|12 years ago I'm not 100% sure exactly what you mean by 'built-ins', but Rust is almost entirely written in Rust. I don't think there's anything major implemented via C FFI in the compiler itself.
evincarofautumn|12 years ago No, “unsafe” means “evaluate this unsafe block as though it were safe”. This enables Modula-style safe interfaces for unsafe implementations.
anon_d|12 years ago Just to clarify, using a `unsafe` block in a function does NOT mean that you have to tag that function as unsafe.
steveklabnik|12 years ago I'm not 100% sure exactly what you mean by 'built-ins', but Rust is almost entirely written in Rust. I don't think there's anything major implemented via C FFI in the compiler itself.
evincarofautumn|12 years ago
anon_d|12 years ago
steveklabnik|12 years ago