• edinbruh@feddit.it
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    That’s also slower than most of the stuff you could come up with. There were other approaches that were almost worse though, like “the function is a switch-case that returns false by default. As complaint tickets are opened, more cases get added to the switch-case”

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      the function is a switch-case that returns false by default. As complaint tickets are opened, more cases get added to the switch-case”

      Oh if that is acceptable, then my secondary idea of using an API call for this should work too. I thought that it would have to be guaranteed to be correct (as long as you don’t reach a stack overflow or something)