Reified Type Parameters

  Рет қаралды 2,368

Dave Leeds

Dave Leeds

Күн бұрын

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

Пікірлер: 15
@mvrkmi
@mvrkmi 18 күн бұрын
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 18 күн бұрын
Wow, thank you so much! I'll keep at it, and hopefully we'll see the growth over time!
@starry_shivam
@starry_shivam 18 күн бұрын
Really the best explanation I've seen on YT for both inline and reified modifiers, this channel is gem for Kotlin devs!
@typealias
@typealias 18 күн бұрын
Hey, thanks so much! Glad you enjoyed it!
@tspander
@tspander 18 күн бұрын
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 16 күн бұрын
That's an amazing explanation, yet so simple! thanks a lot! Dave, you are bringing the light of Kotlin to us :)
@TheMikkelet
@TheMikkelet 17 күн бұрын
David youre a gift to the kotlin community
@mdisi5967
@mdisi5967 18 күн бұрын
This channel is a gold mine, Thank you!
@SureshG
@SureshG 17 күн бұрын
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 14 күн бұрын
Awesome
@ChrisAthanas
@ChrisAthanas 18 күн бұрын
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 18 күн бұрын
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 18 күн бұрын
I would like to pronounce it as RAFAEL xD
@SergeyTosunyan-zb5jw
@SergeyTosunyan-zb5jw 18 күн бұрын
​@@UsmonWasTakenGood one! xD
Inline Functions: inline, crossinline, and noinline
11:59
Dave Leeds
Рет қаралды 3,5 М.
5 Fun Ways to Use Extension Functions in Kotlin
18:46
Dave Leeds
Рет қаралды 10 М.
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 10 МЛН
Junior Software Dev vs Senior Dev solving Valid Anagram
0:53
Greg Hogg
Рет қаралды 191 М.
Do You Like C or C++ More ? #programming #coding #lowcode
0:50
Low Level Learning
Рет қаралды 949 М.
Kotlin Multiplatform vs Flutter: Which should we use?
4:42
Kei Fujikawa
Рет қаралды 14 М.
Variance... without Generics!
9:01
Dave Leeds
Рет қаралды 5 М.
The Essence of Coroutines
8:10
Dave Leeds
Рет қаралды 5 М.
Smart Casts with Kotlin Contracts
7:35
Dave Leeds
Рет қаралды 6 М.
Every Kind of Class in Kotlin
10:44
Dave Leeds
Рет қаралды 7 М.
Why the Boötes Void Terrifies Astronomers
17:34
Fexl
Рет қаралды 40 М.
How principled coders outperform the competition
11:11
Coderized
Рет қаралды 1,6 МЛН
How do computers read code?
12:01
Frame of Essence
Рет қаралды 3 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 618 М.