Programming in Rust: Enums, Tagged Unions, Memory Layout and Pattern Matching

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 พ.ย. 2024

ความคิดเห็น • 8

  • @topcivilian
    @topcivilian 2 ปีที่แล้ว +7

    Thomas, thank you. Yet another fantastic video of Rust. The way you explain the inner-workings of this language is perfect for me. Recently, I started to learn to program. After being inundated by an ocean of tutorials online, it seemed that Python was the way to start coding, however, I discovered Rust... This put the brakes on the snake (python) and I dove deep into the rabbit-hole of Rust. This is not the language for beginners but I don't care about the learning-curve because Rust just makes sense to me: minimal runtime, memory safety, 'C' bindings, pattern matching, and threads without data races. The best part of your content is that you explain things in a simple manner. Most videos are tailored to programmers with experience. Hopefully this comment will be inspiration for you to keep doing what you are doing.

  • @peter9477
    @peter9477 ปีที่แล้ว +1

    Another mistake is saying a char is 4 bytes because of UTF-8. In Rust, strings are UTF-8 but individual chars are UTF-32. A string in Rust is *not* stored as a series of chars, though if you iterate over it the iterator will return chars to you, decoded from the UTF-8.

  • @boyanbalev4428
    @boyanbalev4428 2 ปีที่แล้ว +1

    Thank you Thomas!

  • @ajf
    @ajf 2 ปีที่แล้ว +1

    that another fantastic video in rust thanks! ,,,, can you tell us how make vim like yours !

  • @bigtymer4862
    @bigtymer4862 2 ปีที่แล้ว +1

    What program do you use to make your diagrams?

  • @toolb0x_
    @toolb0x_ 2 ปีที่แล้ว +1

    Hello, very good videos by the way!
    But your example at 4:17 is broken. (compiler error)
    You are writing :
    let operator = Token::Operator(Operator::Add);
    but this should be
    let operator = Token::Op(Operator::Add);
    Token::Operartor does not exist ;-)

  • @alpaslaneldemir6904
    @alpaslaneldemir6904 2 ปีที่แล้ว +1

    🍻🍻

  • @sergesolkatt
    @sergesolkatt ปีที่แล้ว

    💛💚🦀