I
I
Ivan Actovegin2019-08-19 18:42:43
Rust
Ivan Actovegin, 2019-08-19 18:42:43

Is Rust good for a beginner?

Rust is suitable for a newbie in programming? Not too heavy to start with?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ronald McDonald, 2019-08-19
@Zoominger

Norm, simple and understandable language:

fn bar<'a>(p: &'a int) -> &'a int {
    return p;
}

See how simple it is?

S
saintech, 2020-05-14
@saintech

Here, in the next answer to the question, they attacked (unfairly) a person for an allegedly inadequate example. Well, ok, here's a completely normal code for you in growth, it's just a signature (only a signature, Carl!) of a rather popular split method of one of the most popular types of the standard library:

pub fn split<'a, P>(&'a self, pat: P) -> Split<'a, P>
where
    P: Pattern<'a>

After you deal with all these lifetimes, possessions, trait restrictions, try to answer the question - what can this be Patternand what can not be, and then learn zen along with the lifetime of the function .
Well, what do you think, the norms for beginners? Well, yes, for beginners, Haskellists, I think it will just be another monad.
PS: I personally think that Rust is the best thing that has happened in the field of programming languages ​​lately.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question