Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.04 KB

control-flow-functions.md

File metadata and controls

38 lines (31 loc) · 1.04 KB

Header

This is the course header. This will be added on top of every page. Go to DoDAO.io to know more.


Control Flow & Functions

This chapter talks in-depth about the conditional statements, for and while loops, functions in rust, and Error handling.

  • Conditional Statements
    1. If-Else statements
    2. Nested If-Else, nested If statements
    3. Match, pattern matching
  • Loops
    1. For Loops a. Nested for loops, range-based for loops
    2. While Loops
  • Functions
    1. Parameters, Statements
    2. Functions with Return Values
  • Error Handling
    1. Recoverable Errors a. Option b. Result
    2. Combinators a. Using combinators on Options and Results b. Conversion between Options and Results
    3. Early Returns and "?" operator
    4. Non-recoverable errors a. Panics
    5. Custom Errors

Links

Reading List

Summary

Questions