Yes, someone actually did this and I found it running on our server

  • MagicShel
    link
    fedilink
    arrow-up
    23
    ·
    1 year ago

    I’d make it a named function for clarity and testability and proceed to give zero shits how it is implemented. I would unironically write this code if it worked, but I wouldn’t inline it to reduce the cognitive load of reading it.