• @SloppyPuppy
    link
    3
    edit-2
    10 months ago

    Yea, i was really trying to understand… and then I was like yeah fuck this and regex too.

    • @mvirts
      link
      1
      edit-2
      10 months ago

      Gotta learn regex… C++ not so much 😹

      Fear not, template abuse is not a necessary practice

      Edit: wait what is this I thought it was c++ at first. Java? C#? Has an extends keyword

      • @immutabletest
        link
        4
        edit-2
        10 months ago

        This is a Typescript type-level computation (which is Turing-complete AFAIK). However this kind of trickery is usually done for fun and to explore how much could be achieved just on the compile step.

        • @mvirts
          link
          110 months ago

          Lol thanks that saves me a lot of googling 😹 that makes a lot of sense