Fix extra hr
This commit is contained in:
parent
99bb0e9db4
commit
156be1cfd4
@ -9,16 +9,14 @@ tags:
|
||||
|
||||
This article is [also published in *The FOSS Albatross.*](https://medium.com/the-foss-albatross/rust-changes-how-you-think-and-code-2b5ee4d8def2)
|
||||
|
||||
---
|
||||
|
||||
Rust is the hot new language on the block (as new as a language from 2006 can be) that boasts reliability and efficiency.
|
||||
|
||||
How does it do this? Well, Rust has something that no other language does — it guarantees memory and thread safety while maintaining the same high performance of C or C++, all the while having high level features such as pattern matching and functional programming!
|
||||
|
||||
Some languages come close: Go is known for being both fast to run and to write, but its garbage collector and xenophobia toward other languages adds overhead that means that it is not suited for a systems programming language.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
Some languages come close: Go is known for being both fast to run and to write, but its garbage collector and xenophobia toward other languages adds overhead that means that it is not suited for a systems programming language.
|
||||
|
||||
In safe Rust, there is *no such thing* as undefined behaviour. Everything your code says it does will happen — segfaults and NullPointerExceptions are impossible.
|
||||
|
||||
For simpler issues, the rustc compiler tells you more or less exactly what went wrong, along with a helpful error code, a link for examples on how to fix the error code, and even a suggestion that applies directly to your current code, which more times than not immediately fixes the issue.
|
||||
@ -100,4 +98,4 @@ And it's here that you really have to appreciate how much information the compil
|
||||
|
||||
## Conclusion
|
||||
|
||||
Though there is a rather steep learning curve from just *how much* there is to unlearn about the finnicky things you can do in more traditional languages, Rust is a language that lets the computer calculate if your program is correct, letting you think purely on how to solve your problems.
|
||||
Though there is a rather steep learning curve from just *how much* there is to unlearn about the finnicky things you can do in more traditional languages, Rust is a language that lets the computer calculate if your program is correct, letting you think purely on how to solve your problems.
|
||||
|
Loading…
Reference in New Issue
Block a user