Let's Learn Rust: Control Flow

preview_player
Показать описание
You'll find the Control Flow in Rust to be both similar and recognizable from other languages, but also offering a great deal of more features and flexibility; a great feat for a statically typed and ahead-of-time compiled language.

Hope you enjoyed the video!

Check out this code here:

Join my Discord server to chat with me:

Check out some code on my GitHub:

Come visit us on Reddit:

Other Social:
Рекомендации по теме
Комментарии
Автор

Iterating over vecs like this usually breaks your code if you plan to use that array again. Use vec.iter() instead and borrow when printing:)

halbgefressen
Автор

Great series about Rust, and of course I'd like to see more.
One note though: You can, at least in bash, clear the console screen with `ctrl+l` (that is a small L in the end) faster than typing `clear` every time.

mclang
Автор

For me it was better with errors because this is my first language, thanks for everything

betobates
Автор

Have you tried kotlin? I'm learning now and it has a similar syntax :)

tekueldruida
Автор

I maybe I missed your answer before but what's rust made with?

tmsw
Автор

When you start having multiple functions, you can add ! to the macro to do it globally. e.g. #![allow(...)] Instead of just being bound to the function scope.

Also, the rust compile was updated a few days ago. Remember to run rustup to update your toolchain :-)

pedantic
Автор

Can you let me know what OS you are using?

위준영-fl
Автор

Am I the only one who watches his videos despite only knowing how to type "hello world"

grizzlytomemi
Автор

Definitely Second!...Thanks, rust seems to be a strange language.

deanvangreunen