Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
valtron
on Jan 13, 2014
|
parent
|
context
|
favorite
| on:
A 30 minute introduction to Rust
Don't points 2 & 3 together imply that anything that uses built-ins, which I assume are implemented with C FFI, is `unsafe`?
evincarofautumn
on Jan 14, 2014
|
next
[–]
No, “unsafe” means “evaluate this unsafe block as though it were safe”. This enables Modula-style safe interfaces for unsafe implementations.
anon_d
on Jan 13, 2014
|
prev
|
next
[–]
Just to clarify, using a `unsafe` block in a function does NOT mean that you have to tag that function as unsafe.
steveklabnik
on Jan 13, 2014
|
prev
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: