minus-squarecallyral [he/they]@pawb.socialtoLinux@lemmy.ml•Redox OS - an OS built entirely out of RustlinkfedilinkEnglisharrow-up0·11 months ago(notice: I am not a Rust or C/C++ expert) Doing all that is creating a completely separate programming language from C. Rust is that programming language. Fix shitty imports Rust does that with modules and crates. Improve syntax rule You mean having consistent/universal style guidelines? Rust pretty much has that with rustfmt. Improve memory management Safe Rust is memory safe (using things like the borrow checker), and Unsafe Rust is (usually?) separated using the unsafe keyword. Although Unsafe Rust seems to be quite a mess, idk haven’t tried it Other new misc features Rust has macros, iterators, lambdas, etc. C doesn’t have those. C++ probably has those but in a really weird C++ way. linkfedilink
(notice: I am not a Rust or C/C++ expert)
Doing all that is creating a completely separate programming language from C. Rust is that programming language.
Rust does that with modules and crates.
You mean having consistent/universal style guidelines? Rust pretty much has that with rustfmt.
Safe Rust is memory safe (using things like the borrow checker), and Unsafe Rust is (usually?) separated using the
unsafe
keyword.Although Unsafe Rust seems to be quite a mess, idk haven’t tried it
Rust has macros, iterators, lambdas, etc. C doesn’t have those. C++ probably has those but in a really weird C++ way.