2 ms·
> "On the other hand, safety is the absolute least concern." In that case, you may be interested to know Rust permits unsafe code: https://doc.rust-lang.org/b
by ZenoArrow 11y ago
> "On the other hand, safety is the absolute least concern."
In that case, you may be interested to know Rust permits unsafe code:
https://doc.rust-lang.org/book/unsafe.html https://doc.rust-lang.org/book/unsafe.html
- onetwotree 11y agoUnsafe code isn't for things that "don't require safety". It's for things that are intrinsically unsafe, like calling foreign functions, and the unsafe keyword is basically saying "I promise to be very, very careful".
- ZenoArrow 11y agoUnsafe code in Rust is for anything the programmer wants to use it for. If someone is writing their own scripts (like the GP), and wants a strongly-typed system-level programming language, and has explicitly stated they care very little about safety, I see no reason why they couldn't use unsafe Rust code.