Getting familiar with Rust's syntax

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

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

  • @PamSanders-t7w
    @PamSanders-t7w วันที่ผ่านมา +1

    Great content, as always! I have a quick question: My OKX wallet holds some USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). How should I go about transferring them to Binance?

  • @Zhwazi
    @Zhwazi 4 วันที่ผ่านมา +4

    1:58 Rust has a return keyword. Returns are implicit at the end of a function, and leaving them implied at the end is idiomatic, but early returns still use the return keyword.

    • @francescociulla
      @francescociulla  4 วันที่ผ่านมา +1

      you are right! I think this is the best way to introduce it to the beginners, but thanks for pointing it out!

  • @Brocodefound1677
    @Brocodefound1677 6 วันที่ผ่านมา +1

    Finally here 😃 Francesco where is the practise excercise?

  • @ossurf
    @ossurf 4 วันที่ผ่านมา +1

    Francesco n. 1!!!!!!!!!

  • @ossurf
    @ossurf 4 วันที่ผ่านมา +1

    manca poo ai 300.000!

  • @ok-alarm
    @ok-alarm 6 วันที่ผ่านมา +1

    still struggling with lifetimes and some ownership rules. 😅

    • @francescociulla
      @francescociulla  วันที่ผ่านมา

      I can feel you, have you checked the dedicated videos?

  • @antoniong4380
    @antoniong4380 4 วันที่ผ่านมา

    The way you explain Return and lifetimes might cause misunderstanding.

    • @antoniong4380
      @antoniong4380 4 วันที่ผ่านมา +1

      Return are optional keywords. Can be used to do an early return instead of "There's no return keyword".
      Or rather, it should've been "Has implicit return"
      Lifetimes analogy would make more sense if you say "I can't leave yet because you have my 'ticket plane'" instead of "You haven't returned my book"
      This (oversimplified) implies that an action can't be done because the green-ticket to do something is currently held by someone else.
      Also, the example of the function isn't really helpful. It is more relevant to the callsite, instead of the function body. In the context of the function, the return lifetime will be the overlapping range(or shortest lifetime) of both parameters.
      This nuance, however only matters to the callsite, and is easier to see why lifetime would matter.

    • @francescociulla
      @francescociulla  4 วันที่ผ่านมา

      Hey Antonio, yes you are correct. I use the return keyword and I thought this was more to show the beginners the best practice, but yes, there's the return keyword in Rust and I probably will make a comment about this. About lifetimes, that's a nice analogy, I should have used it. Thanks for taking the time to write this!

  • @xl0xl0xl0
    @xl0xl0xl0 4 วันที่ผ่านมา +2

    Is this video AI-generated?

    • @francescociulla
      @francescociulla  4 วันที่ผ่านมา

      no it's me reading and there is an editor

  • @Dev-Dojo-channel
    @Dev-Dojo-channel 6 วันที่ผ่านมา

    Respected sir, please make the rust series from begginer to advanced.
    You are a phenomenal teacher 🎉🎉🎉.
    Please do it.

    • @francescociulla
      @francescociulla  วันที่ผ่านมา

      Hi dev dojo.
      Here si the playlist you are looking for: th-cam.com/play/PLPoSdR46FgI412aItyJhj2bF66cudB6Qs.html

    • @Dev-Dojo-channel
      @Dev-Dojo-channel 13 ชั่วโมงที่ผ่านมา

      @francescociulla I already started following it. It's a 💎.
      Thank you Sir.🙏

    • @Dev-Dojo-channel
      @Dev-Dojo-channel 13 ชั่วโมงที่ผ่านมา

      @francescociulla add some real world projects SIR, please 🙏