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

  • @MagicShel
    link
    237 months 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.