• witx
    link
    fedilink
    arrow-up
    2
    ·
    1 month ago

    And how testable is that solution? Sure macros are helpful but testing and debugging them is a mess

    • oldfart@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      You mean whether the library itself is testable? I have no idea, I didn’t write it, it’s stable and out there for years.

      Whether the program is testable? Why wouldn’t it be. I could debug it just fine. Of course it’s not as easy as Go or Python but let’s not pretend it’s some arcane dark art

    • RheumatoidArthritis@mander.xyz
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      You mean whether the library itself is testable? I have no idea, I didn’t write it, it’s stable and out there for years.

      Whether the program is testable? Why wouldn’t it be. I could debug it just fine. Of course it’s not as easy as Go or Python but let’s not pretend it’s some arcane dark art

      • witx
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 month ago

        Yes I mean mocking, faking, et. al. Not this particular library but macros in general are not pleasant for that.

        Besides there’s all the type info you lose with macros