What are some projects I should do to better understand lifetimes and generics in Rust?

Hello, I am bora, i have a question for you

This my question
"What are some projects I should do to better understand lifetimes and generics in Rust?"

Would writing an interpreter or compiler help me better understand these and many other topics?

I'm sure writing a compiler or interpreter in Rust would cause you to become intimate with all parts of the Rust language.

But then again so would many other non-trivial projects.

Why does this question sound so similar to others asked here in recent weeks about writing a compiler or interpreter in Rust?

1 Like

thank you i was looking to get closer to rust and i asked such a question because i thought it would be good to write compiler or interpreter

Something that worked for me was implementing operations for 2D and 3D Vectors: Add, Mul, Sub, Div.

Try to do it for any numeric type (f32, f64, i64, etc.)

Good luck in your journey.

What's the difference between this question and the one you posted a couple of weeks ago?

The difference is I was asking if writing a compiler would help me gain in-depth knowledge of many subjects?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.