[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/...
  • Наука та технологія

КОМЕНТАРІ • 23

  • @CosmicCoder
    @CosmicCoder 2 місяці тому +3

    Nice to see you back on the D language courses, Mike. Looking forward to your D-Conf talk on Saturday.

    • @MikeShah
      @MikeShah  2 місяці тому +1

      Cheers! Yes, Dconf online should be lots of fun 😁

    • @thearguenaut3187
      @thearguenaut3187 2 місяці тому +1

      @@MikeShahwhen is Dconf online?

    • @MikeShah
      @MikeShah  2 місяці тому

      This Saturday ​@@thearguenaut3187

    • @thearguenaut3187
      @thearguenaut3187 2 місяці тому

      @@MikeShahok great!

    • @thearguenaut3187
      @thearguenaut3187 2 місяці тому +1

      Mike are you still teaching D at universities and do you still believe D is the best language?

  • @bsdooby
    @bsdooby 2 місяці тому +1

    What I find especially valuable is that Mike is also a pro C++ programmer; in this context comparing D and C++ is enlightening.

    • @cyrilemeka6987
      @cyrilemeka6987 2 місяці тому +2

      Yh, I really like how open minded he is about programming languages.

    • @MikeShah
      @MikeShah  2 місяці тому

      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

    • @cyrilemeka6987
      @cyrilemeka6987 2 місяці тому

      ​@@MikeShah very true❤

  • @GaryChike
    @GaryChike 2 місяці тому +1

    D'amn, I've been learning Generics in several other languages .. glad to see one on D!

    • @MikeShah
      @MikeShah  2 місяці тому +2

      One of the superpowers of the D Language :)

    • @GaryChike
      @GaryChike 2 місяці тому

      @@MikeShah

  • @Chupe_chupe
    @Chupe_chupe 2 місяці тому +1

    Great video

  • @cyrilemeka6987
    @cyrilemeka6987 2 місяці тому +1

    6:25 😂

  • @bsdooby
    @bsdooby 2 місяці тому +1

    And I did not know that auto args do not work in D (?)

    • @MikeShah
      @MikeShah  2 місяці тому +1

      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 :)