Slingers may be useful v. Unwalled cities (maybe barb encampments would work like that)
They would do just as much damage as a warrior and not take any.
They could also focus fire/pair w warriors to eliminate the enemy before the enemy could attack
Or when defending a rough terrain, or being located one tile after a river tile: when enemy has used is movement points before the slinger, he can attack.