DEV Community

Cover image for Learning Rust 🦀: 04- The basics: Flow Control

Learning Rust 🦀: 04- The basics: Flow Control

Fady GA 😎 on June 11, 2023

In this article I'll discuss the main program flow aspects of any programming language, the conditions and loops and how they are implemented in Ru...
Collapse
 
webbureaucrat profile image
webbureaucrat

🦀 New Rust Terminology: "panic" means that the program has errored out!

Sort of. It means the program has errored out at runtime. But the examples you give will not panic because they will instead error at compile time. Compiler errors are not called "panics." It's an important distinction in compiled languages.

Collapse
 
fadygrab profile image
Fady GA 😎

Thanks to point that out! I didn't pay attention to this distinction before!