|
|
|
|
|
by otabdeveloper
3434 days ago
|
|
> And what do you do when clang isn't an option, due to customer, target hardware, OS or even language extensions? Then you cannot use Rust and must settle for lack of safety. (A profoundly silly question -- if modern C++ is not an option for whatever reason, then Rust is doubly so.) |
|
Just because the only existing Rust compiler uses LLVM, it doesn't mean another implementations will not surface.
So hypothetical the OS not targeted by clang, can still have a Rust compiler on the OS SDK, offering all safety guarantees from Rust.
For example, there are OSes and hardware architectures not supported by clang that have Ada and even Java AOT compilers.