• @SloppyPuppy
    link
    3
    edit-2
    1 year ago

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

    • @mvirts
      link
      1
      edit-2
      1 year 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
        1 year 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
          11 year ago

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