From my #18, I never said it was a good idea, and noted that it may result in you being burned. I just meant that a revolver would be less likely to jam from an in-pocket firing than a semi-auto.
Back in the days when work required me to be in a bad area late at night, I would walk to my car with my hands in my pocket, holding a .38 snubby in my coat pocket. To be sure, I would take it out of my pocket if at all possible if I needed to fire.
Even so, I could see one or two scenarios where I might need to fire the first shot through the pocket, such as a mugger already having a weapon up against me.
I suppose you could push the gun as far away from your belly as possible before you pull the trigger.
Both times Mr. Dirtbag decided not to see what was in my hand.
One was a five-shot .38 S&W snubbie (jacket pocket)...the gun in the donut bag was a Ruger Security Six (.357 Mag) with a four inch barrel.