Rust Programming Tutorial #39 - Enum Methods

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

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

  • @Ivan-qb7kc
    @Ivan-qb7kc 6 ปีที่แล้ว +11

    U can remove '&' and "return" in match block

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

    Thanks! Would you consider making your vscode dark mode?

  • @sbn0671
    @sbn0671 5 ปีที่แล้ว +2

    Why did you added & sign front of the Day::Saturday? Does it copies himself?

    • @cryptomando
      @cryptomando 2 ปีที่แล้ว

      It's a reference to self (the Day enum) could have done &Self::Saturday

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

      He didn't have to, don't know why he even put it as it doesn't take ownership whatsoever.

  • @chiragsingla.
    @chiragsingla. 3 ปีที่แล้ว +1

    I was just reading docs I did understand structs and enums was a bit difficult for me thanks for this vid

  • @muhammadmuhajir1053
    @muhammadmuhajir1053 6 ปีที่แล้ว +3

    Waiting for next episode :)

    • @dcode-software
      @dcode-software  6 ปีที่แล้ว +1

      ;)

    • @dcode-software
      @dcode-software  6 ปีที่แล้ว +1

      It's here, mate. Check the channel if you haven't already 😁

  • @elijahlucian
    @elijahlucian 5 ปีที่แล้ว

    Nice one

  • @nextlifeonearth
    @nextlifeonearth 6 ปีที่แล้ว +7

    Yo, the # sign is just "hash". A hash tag is what people called it when they tagged a word in twitter with a hash sign in front of it.
    Please never call the # a "hash tag" outside of twitter again.

    • @nextlifeonearth
      @nextlifeonearth 6 ปีที่แล้ว

      It can also be called a pound sign, or number sign.
      But not hash tag. That's just missing the point.

    • @dcode-software
      @dcode-software  6 ปีที่แล้ว +6

      Yeah, you're right. Thanks for the enlightenment

    • @Take_it_E-z
      @Take_it_E-z 5 ปีที่แล้ว +1

      @@dcode-software Graphical Design tutorials would be great in the near future. Rust really is going to be the successor to C++.

    • @elijahlucian
      @elijahlucian 5 ปีที่แล้ว +3

      Dude. Who cares. We all knew what he meant.

    • @mbartelsm
      @mbartelsm 4 ปีที่แล้ว

      Technically, it's called an octothorp, not that it matters because everyone gets what hash, HASHTAG, pound sign, and number sign mean.

  • @PseudoDope
    @PseudoDope 2 ปีที่แล้ว

    oop rust???!!