An eye for an eye. That's fair game. And if everybody ended up blind, it would be because everybody deserved it, right? (However, that would never happen: most persons aren't criminals, and less so if the law was so strict).
People find talion law barbaric nowadays, but think about our current system for a moment. In some Muslim country (I don't remember which one, exactly), some guy dropped acid to the face of his wife, and the punishment was burning half his face (because a woman is worth half than a man there). If that had happened in my country, they'd have put the man in jail for some years (not many, really), and after that, he would have gone out and live happily ever after (there's no life imprisonment here, and living conditions in jail are not so bad as in USA). For me, that doesn't pay for having a burnt face during your whole life. Burning only half his face is also unfair, ok, but still better than the other option. Or another example that was so much discussed in the media here: A group of young guys, some of them underaged, raped and brutally murdered a teenage girl. They hid the body and refused to tell the police where it was. Everybody knew that they were the murderers, but since there was no body, there was no case. Now that girl is buried, and all those guys are free and happy. The mother of one of them even received money to talk in a TV show. THAT'S barbaric.
Well, the vast majority of the Bible is "do onto others as others do onto you", where as Ghandi is more like "rise above what bad things others do onto you", be the better person, sort of speak. At least, these are my interpretations, anyway. I could be wrong.
Personally I believe stooping to the person's level who's done me wrong makes me just as bad as they are, which I don't want to do because then I can't condemn them for what they've done to me if I'm just as willing to do it to them also. Doesn't really solve anything, in my view. Being the better person and not paying them back in kind doesn't mean I let them get away with it, however, as there are other ways of making them pay for the wrongs they committed against me.