Advanced Kotlin: Generics, Type Erasure, and Reflection Explained

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

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

  • @masoudbadremiran3657
    @masoudbadremiran3657 หลายเดือนก่อน +1

    Best kotlin generic course

  • @MrFlavprince
    @MrFlavprince 5 หลายเดือนก่อน +1

    The best video explaining variance! Very explicit explanations, very informative leaves me with more answers than questions.

  • @chinmayakn7199
    @chinmayakn7199 8 หลายเดือนก่อน +1

    Good explanation.👏👏👏 Need more videos like this!!

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

    one of the best videos on kotlin generics !

  • @NATAR160
    @NATAR160 2 หลายเดือนก่อน +1

    Great job. Thanks so much.

  • @nicholasferrara8028
    @nicholasferrara8028 11 หลายเดือนก่อน

    Keep going, would love to see more videos

  • @wilsonahanmisi1187
    @wilsonahanmisi1187 10 หลายเดือนก่อน

    Love this. Keep up the good work 👏🏾

  • @dashaxedit
    @dashaxedit 3 หลายเดือนก่อน +1

    Thank you

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

    Thanks Ian for this keep up soaring👏👏👏👏

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

    What's the point of "in" and "out" though?
    I don't get the use case of using this, instead of just "T" which holds both..

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

      its just another tool in the toolbox, if you want to limit the output type but you don't care about the input, it is a nice way to do it.

    • @yxlxfxf
      @yxlxfxf 7 หลายเดือนก่อน

      You use in/out to specify variance, which is helpful when dealing with sub-types. Simply using "T" means the type is invariant in T.

    • @LiranBarsisa
      @LiranBarsisa 7 หลายเดือนก่อน

      @@yxlxfxf The point is that you get both worlds without them. They are limiting you.

    • @yxlxfxf
      @yxlxfxf 7 หลายเดือนก่อน

      @@LiranBarsisa the point is wrong, I don't think you understand variance. You don't get both worlds, you get neither - invariant means neither covariant nor contravariant

    • @LiranBarsisa
      @LiranBarsisa 7 หลายเดือนก่อน

      @@yxlxfxf If you don't use "in" and "out", what do you get, then? You can have it as output of functions, and also input of functions.

  • @OmbasaMukhwami
    @OmbasaMukhwami 3 หลายเดือนก่อน +1

    Am a c# developer and I now know