![]() In typechecking, only the signature of functions are considered.Equally, I can write code which I know I won't have to update next time I update rust.Īnd it's not just Rust itself - the language enables libraries to have the same guarantees. Last, I really appreciate how rust has been designed for backwards-compatibility. I don't need to know how a JSON parser or writer works to use serde - and my lack of knowledge won't ever be a source of bugs, because I get compile time errors rather than runtime ones. These interfaces cannot be used incorrectly, which means I don't have to perform runtime checks, and my users don't have to even think about problem cases, because they can't write them.Īs a library consumer, the rich and extensive crates ecosystem enables me to write code in vast different domains without needing to dig into the specifics of every one. Traits mean that when my code is templated/generic, I have exact capabilities I can require.Īs a library author, the complex trait/generic system means I can craft intricate, yet easy to use interfaces. Rust goes one magnitude further in this! Compile time checking extends to thread safety, to ownership semantics, to validation.Įnums mean that I can at compile time declare the set of variants my data can exist as, and when accessing that data I'm forced to consider all possibilities. They give compile time assurances that your code has the correct types, and move a set of errors from runtime to compile time. If nothing else, I highly recommend reading the iconic and extensive post, fireflowers - The Rust Programming Language in the words of its pracitioners.Īs for my own opinion, I think there are too many things to list, so I'll just say things briefly.Ĭompile time guarantees: When I think of a "staticly typed language", I think of Java, or C#, or something like TypeScript. ![]() Mozilla's Rust, and why we love it (Cambridge Consultants, Oct 2016).Why Rust is the Most Loved Language by Developers (Jannette Ciborowski / Mozilla Tech, Apr 2017).Why Rust? (Parity Technologies, July 2018).Why I love Rust (Alex Kitchens, July 2018).Still in love with Rust dpc, Nov 2018).Why we chose Rust as our programming language (Bitbucket, June 2019).I really love Rust (/u/kaikalii, Feb 2019).Question: what are things you don't like about Rust currently? (reddit, Feb 2019).Why do people hate Rust? (reddit, Jul 2019). ![]() Why are you interested in Rust? (reddit, July 2014).Why do you use Rust? (reddit, May 2018).Why is Rust suddenly so widely adopted? (Not a trick question!) (reddit, Aug 2019).Here's a dump of some possibly relevant reddit discussions: The fact that Typescript is high on the list rather supports the idea that people are looking for something solid. As opposed to the wobbly foundations of all the others. The first language since Ada with an emphasis on correctness. Namely the whole idea of safety of memory usage in a compiled, real systems programming language with no garbage collection or complicated run-time system. It turns out that Rust is the only language of the dozen or so I have used professionally for four decades that actually introduces genuinely new features.Given the above, for sure if you ask programmers what language they love it will not be the one they are using or any they have used in the past.Īs almost no programmers have had to use Rust for the long haul so far of course they will say they love Rust. As you know, new languages sprout like weeds as a result. We know this to be true because those that do a lot of programming in all kind of languages and have the skill and talent end up inventing and implementing their own new programming language to fix all the pains they have suffered in the past. ![]() Use many, over many years, they all suck.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |