The uproar in Europe over spying by the NSA has led to calls for a treaty or code of conduct to limit espionage. To understand why this is naive, imagine a treaty to ban sex.