An industry devoted to serving the public's right to know gives twisted and evil men the means of becoming known. This problem is not obviously amenable to a solution, and it certainly is not amenable to a legal one. A regime of media regulation that would be both effective at preventing mass shootings and consistent with the American Constitution is no easier to imagine than a regime of gun regulation that would meet the same criteria.
