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

  • @[email protected]
    link
    fedilink
    238 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.