I beg to differ. I keep Jackson's Tree Snakes, which do exceptionally well in the same enclosure provided certain requirements are met. Some say they actually do better in pairs.
There are other species that will not mate as readily or accept mates unless they are housed together - some cribos, spilotes, etc.