Комментарии •

  • @shimonpertz
    @shimonpertz 5 месяцев назад +4

    Clear language, high level of explaining and simple to understand, neat slides. Liked and Subscribed.
    Keep up the good work mate!

  • @hahaheheh0h0
    @hahaheheh0h0 Год назад +9

    I happened to chance upon your videos on reddit.
    i had a hard time learning about macros from the book, and the clarity of your explanations is simply amazing.
    thanks for all the tutorial videos!
    they are of tremendous help!
    I can't wait for your subsequent videos.

    • @_schwm
      @_schwm Год назад +1

      Thank you so much. 😊

  • @cthutu
    @cthutu Год назад +2

    Really good video - with syn and quote, writing powerful macros is more effortless.

  • @slava_in3757
    @slava_in3757 Год назад +6

    Nice video, waiting for more on attribute and function macros

    • @_schwm
      @_schwm Год назад +3

      Will be there in next 5 weeks I believe. Thank you. 🩶

    • @_erayerdin
      @_erayerdin Год назад +1

      Forgot to inform, it's been out.

  • @dimiutube
    @dimiutube 6 месяцев назад

    Short and easy to understand! Thank you very much!

  • @yapayzeka
    @yapayzeka Год назад +3

    proud of finding this very good quality channel this early

    • @_schwm
      @_schwm Год назад

      Thank you. 😊

    • @yapayzeka
      @yapayzeka Год назад

      @@_schwm cant wait for tutorials about basic and advanced use of traits (blanket implementaitons, trait objects etc) and generics. Your examples and way to explain things are very very catchy.

    • @albertz0
      @albertz0 Год назад

      same here. Rust... so much to learn, so interesting.

  • @yaksher
    @yaksher 10 месяцев назад +2

    @0:20 Function-like macros can also be procedural, though all declarative macros are function-like. Declarative macros are macros defined via macro_rules! and procedural macros are defined via proc_macro and run arbitrary Rust.

  • @TON-vz3pe
    @TON-vz3pe 6 месяцев назад

    This is quality content. You explained the things which I considered complex with a simple example and easy words.

  • @CGMossa
    @CGMossa 11 дней назад

    These are awesome.

  • @proud22beme
    @proud22beme Год назад +1

    Thank you SOOOO MUCH for making this!
    The topic of proc-macros was intimidating for me to even approach because of my perceived difficulty and complexity of them.
    With how concise and clear this is written and done, and even explaining all the nuisances, and the reasoning for each part, it really makes proc-macros way more approachable!
    Huge thanks for taking the time to write and record this, its a HUGE help to get a understanding of what they really are, and how to start writing them~

    • @_schwm
      @_schwm Год назад

      You're so welcome! 😊

  • @omestredd3
    @omestredd3 Год назад

    This is really amazing tutorial! I also stumbled upon it in reddit. Great job! thank yo uso much!

    • @_schwm
      @_schwm Год назад

      Thanks for watching. ☺️

  • @pmmeurcatpics
    @pmmeurcatpics 3 месяца назад

    Awesome video!

  • @InMemoryOfNeo
    @InMemoryOfNeo 9 месяцев назад

    awesomeeee 👏👏👏👏👏👏👏👏👏👏👏

  • @aperson4051
    @aperson4051 Год назад +1

    Very good!!

    • @_schwm
      @_schwm Год назад

      Thank you.

  • @skytech2501
    @skytech2501 9 месяцев назад

    you are awesome!

  • @obichinedufrank
    @obichinedufrank Год назад

    Thank you 😊

  • @kyrylogorbachov3779
    @kyrylogorbachov3779 4 месяца назад

    Excellent explanation! Thank you. Just a bit too fast for me. Felt like some seconds in between the concepts where needed for thinking. Ofacause pause is an option.

  • @GlobalYoung7
    @GlobalYoung7 Год назад

    thank you 😊

    • @_schwm
      @_schwm Год назад +1

      You're welcome 😊

  • @discobiscuit8955
    @discobiscuit8955 10 месяцев назад

    Thanks for the vid! Can you tell me what color scheme you're using? It's very pleasing.

  • @Robert-ht5kd
    @Robert-ht5kd Год назад +1

    3:03 What is that terminal?

    • @_schwm
      @_schwm Год назад

      It's fish and tide. After you install fish, you can install fisher (fish package manager) and then tide here: github.com/jorgebucaran/awsm.fish

  • @lukeskywalker2116
    @lukeskywalker2116 Месяц назад

    Seems like visual studio is fighting you: you constantly have to clear out where it’s trying to be helpful

  • @GustavoAVerde
    @GustavoAVerde 10 месяцев назад

    What kind of sorcery is this!!??

    • @_schwm
      @_schwm 10 месяцев назад +2

      Unless you don't want to generate some code, writing macros is totally optional. So, a sorcery you can ignore indeed, my friend.

  • @PrimeGoose
    @PrimeGoose Год назад +1

    love me pls😇

    • @_schwm
      @_schwm Год назад

      Here I go. 😊

  • @wolfeygamedev1688
    @wolfeygamedev1688 Год назад

    I followed allong until the !vec[#(#field_idents),*] syntax, that made my brain unhappy

    • @_schwm
      @_schwm Год назад +2

      let me explain it by oversimplifying.
      `#var_name` is a special syntax for `quote::quote!` to generate code with variables that come before it.
      if your variable outside `quote::quote!` is a very simple type like string or integer, then inside `quote::quote!`, you can simply use `#var_name`.
      but, if `#var_name` is an array or vector, you should use `#(#var_name),*`, and possibly wrap it inside a `vec![]`.
      the reason why you do this if `#var_name` is a vector or array is because, while you're generating code, you need to iterate over each element inside `var_name`. so you can say `#(),*` is like a for-each loop while generating code.

    • @wolfeygamedev1688
      @wolfeygamedev1688 Год назад

      @@_schwm sum it up is just way to make vec with field identifier strings in it. I just hate the syntax...