Carry something only if you intend to use it if necessary. The best thing as mentioned before is your brain. Be aware and do your best to get away. Evidently if you see an attack coming, prepare for it the best you can. However, it seems most attackers don't let you know ahead of time what their motives are.