2 ms·
I agree with you if we replace "dynamic language" by "not as strongly typed". C is not exactly dynamic but its type system is prehistoric compared to Rust. For
by simias 9y ago
I agree with you if we replace "dynamic language" by "not as strongly typed". C is not exactly dynamic but its type system is prehistoric compared to Rust.
For instance C's equivalent of Rust's enum would be tagged unions, however the compiler cannot enforce the semantics of tagged unions and will gladly let you access random members regardless of the tag.
Same story with the borrow checker compared to C's "whatever you say chief" approach to resource management.
Rust is definitely not the only one to offer these guarantees and some languages even go further (such as Idris for instance). The reason Rust stands out is that it can be used basically anywhere you'd use C or C++, something few other languages can claim.
- jlg23 9y agoI agree, just did not consider it worth anyone's time to go into details the OP does not even touch. The article compares rust with js and ruby....