ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
Best kotlin generic course
The best video explaining variance! Very explicit explanations, very informative leaves me with more answers than questions.
Good explanation.👏👏👏 Need more videos like this!!
one of the best videos on kotlin generics !
Great job. Thanks so much.
Keep going, would love to see more videos
Love this. Keep up the good work 👏🏾
Thank you
Thanks Ian for this keep up soaring👏👏👏👏
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..
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.
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.
@@yxlxfxf The point is that you get both worlds without them. They are limiting you.
@@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
@@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.
Am a c# developer and I now know
Best kotlin generic course
The best video explaining variance! Very explicit explanations, very informative leaves me with more answers than questions.
Good explanation.👏👏👏 Need more videos like this!!
one of the best videos on kotlin generics !
Great job. Thanks so much.
Keep going, would love to see more videos
Love this. Keep up the good work 👏🏾
Thank you
Thanks Ian for this keep up soaring👏👏👏👏
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..
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.
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.
@@yxlxfxf The point is that you get both worlds without them. They are limiting you.
@@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
@@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.
Am a c# developer and I now know