So, you've decided to learn Rust.
Good choice! Rust is an awesome language that combines the power of systems programming with modern language fea...
For further actions, you may consider blocking this person and/or reporting abuse
thank you for sharing ...simple and easy to understand
That was the goal of the article: simplifying the rust syntax. Of course, it's not exhaustive, but it was more about lowering the complexity barrier. Thank you
:)
I was going to learn rust, this is a good starting point. Especially the ownership and borrowing part, I can assure you that I have missed up a lot of C code... mostly skill issues as always.
glad it helped
Beautiful, thank you . It feels like rust is Somewhat similar to scala and golang ...
Gonna implememt life times To my language, thanks
lifetimes is a concept specific to the rust programming language
Im sure they wont mind me using as well
gl
What a great article.. Rusts pattern matching is really clever. I'm bored to death with C#, and Rust seems to inspire me again
Very inconsistent, irregular, weird and illogical systax. 🤦
It really is, no wonder Rust programmers make $30k/year more than us "lowly" C++ programmers at my company, no one can tell if what they're doing is right or not🤦🏼♀️ But here I am learning it since it's the only way I'll make over $200k without scoring a senior role...
interesting take, it seems the opposite to me. Can you elaborate on each point?
variables
, they areconstants
by default! And one has to usemut
to define a variable variable! While most of the programming languages require to defineconstants
by some other specific way.6..=10
. Is..
one operator or..=
? If..
is an operator then other match/switch cases should also be prefixed with=
, for example:=1 => println("One!")
. Otherwise=
in..=
seems extra.Plus, I have some questions/doubts:
_
statement has a comma too??
operator examples, it looks like the code is returningOk
orErr
. What does returningOk
orErr
means?It's fine if you don't make any changes to the post to make me understand or explain anything here. I don't know Python language but I have read its documentation for beginners and I liked its syntax. Python seemed most logical than most of the programming languages.
Immutable variables are not constants, since their values are not known at compile time, constants are values written to the binary during compilation; immutable variables can be assigned during program execution and immutable from there. There are several compression errors like this in all your criticisms, but I think the main one is that you think Rust has to look like the languages you know and there is absolutely no reason for that. All languages are different!
@nikunjbhatt I think you are complaining that Rust does not look like some languages you know.
Many of those weirdness you cited come from SML. If you are curious, see how to implement binary tree in SML. It's super easy. The pattern matching and algebraic datatypes came straight from there (or some other language of the SML family)
Why? I am curious now
Indeed!