Hi All!

Welcome to week 2 of Reading Club for Rust’s “The Book” (“The Rust Programming Language”).

Have a shot at going through “the reading” and post any thoughts, confusions or insights here

“The Reading”

Basically covering the fundamentals of the language before getting to grips with the borrow checker next chapter

The Twitch Stream

Video Tutorial

What’s Next Week?

  • Chapter 4 … Understanding Ownership
  • Start thinking about challenges or puzzles to try as we go in order to get some applied practice!
    • EG, Advent of Code … I think @sorrybookbroke@sh.itjust.works is going to be running sessions on this on twitch? (Thursday 6.30pm EST (New York))?
    • Maybe some basic/toy web apps such as a “todo”
  • maegul@lemmy.mlOPM
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    Similarly for conditionls:

    let condition = 10;
    
    let number = {
        if condition > 5 {
            condition * 10
        } else if condition > 2 {
            condition
        } else {
            condition / 10
        }
    };