[Dlang Episode 83] D Language - Generic Programming
Вставка
- Опубліковано 13 бер 2024
- ►Full DLang Series Playlist: • D Language (DLang) Pro...
►Find full courses on: courses.mshah.io/
►Join as member to get perks: / @mikeshah
►Lesson Description: In this lesson I introduce to you the idea of generic programming. We'll soon be talking about templates, but it's important to first understand the basic ideas of generics.
►Please like and subscribe to help the channel!
►UA-cam Channel: / mikeshah
►Join our free community: courses.mshah.io/communities/... - Наука та технологія
Nice to see you back on the D language courses, Mike. Looking forward to your D-Conf talk on Saturday.
Cheers! Yes, Dconf online should be lots of fun 😁
@@MikeShahwhen is Dconf online?
This Saturday @@thearguenaut3187
@@MikeShahok great!
Mike are you still teaching D at universities and do you still believe D is the best language?
What I find especially valuable is that Mike is also a pro C++ programmer; in this context comparing D and C++ is enlightening.
Yh, I really like how open minded he is about programming languages.
Cheers! Different programming languages help me think in different ways -- over time exploring different languages helps strengthen the language I write in on a day-to-day basis :)@@cyrilemeka6987
@@MikeShah very true❤
D'amn, I've been learning Generics in several other languages .. glad to see one on D!
One of the superpowers of the D Language :)
@@MikeShah
Great video
Cheers!
6:25 😂
😁😁
And I did not know that auto args do not work in D (?)
Correct (Some explanation here: forum.dlang.org/post/ecxeiorzeuhvfsaazpaz@forum.dlang.org)
C++ 20 does have 'abbreviated function templates' which let you use auto as an argument -- which is essentially the same thing as a C++ template. In D however, I might argue that templates are so easy to write, there's really no need to abbreviate it further in the declaration :)