Reified Type Parameters

Sdílet
Vložit
  • čas přidán 22. 06. 2024
  • Learn what happens to type arguments when our Kotlin code is compiled, and how we can step around certain type erasure problems with reified type parameters.
    📽️ Inline, Crossinline and Noinline video:
    • Inline Functions: inli...
    ✨ New to Kotlin? Start your journey here: typealias.com/start/
    ... or pick up the new Leanpub Edition for offline access and more! book.typealias.com/
    🚀 Get the inside scoop on everything I'm working on - join my brand new email newsletter!
    Sign up here: newsletter.typealias.com/
    00:00 Introduction
    00:52 Type Erasure
    03:35 Example 1 - Comparing Types
    05:45 Example 2 - Class Objects
    08:28 Trade-offs
    09:16 Wrap-up
  • Věda a technologie

Komentáře • 15

  • @mvrkmi
    @mvrkmi Před 11 dny +23

    Dave, your channel should have 20x the number of subscribers. Your knowledge and presentation style are awesome. Hopefully more viewers will discover you.

    • @typealias
      @typealias  Před 11 dny +5

      Wow, thank you so much! I'll keep at it, and hopefully we'll see the growth over time!

  • @starry_shivam
    @starry_shivam Před 11 dny +16

    Really the best explanation I've seen on YT for both inline and reified modifiers, this channel is gem for Kotlin devs!

    • @typealias
      @typealias  Před 11 dny +1

      Hey, thanks so much! Glad you enjoyed it!

  • @tspander
    @tspander Před 11 dny +10

    I am usually already familiar with the concepts you're covering, but I still really enjoy these videos just to solidify my mental model of them. Really well done!

  • @igorshaula9097
    @igorshaula9097 Před 8 dny

    That's an amazing explanation, yet so simple! thanks a lot! Dave, you are bringing the light of Kotlin to us :)

  • @TheMikkelet
    @TheMikkelet Před 10 dny +2

    David youre a gift to the kotlin community

  • @mdisi5967
    @mdisi5967 Před 10 dny +2

    This channel is a gold mine, Thank you!

  • @SureshG
    @SureshG Před 10 dny

    As always, thanks for the awesome video....I know type erasure is a jvm thing, but how does reified work when compiling to other targets, specially native targets (mac, linux, windows) ?

  • @gb_kash
    @gb_kash Před 7 dny

    Awesome

  • @ChrisAthanas
    @ChrisAthanas Před 11 dny +1

    Pronounced REE-if-EYED, as in to "Make REAL"
    Not RAY-if-EYED
    Please look it up if you disagree
    Otherwise great content.... there are several other programming terms in this area that are often mispronounced, and I will leave you to find them on your own

    • @typealias
      @typealias  Před 11 dny +6

      RAY-if-eyed is actually the primary pronunciation. REE-if-ied is the alternate pronunciation. See here: www.merriam-webster.com/dictionary/reified

    • @UsmonWasTaken
      @UsmonWasTaken Před 11 dny +2

      I would like to pronounce it as RAFAEL xD

    • @SergeyTosunyan-zb5jw
      @SergeyTosunyan-zb5jw Před 11 dny

      ​@@UsmonWasTakenGood one! xD