Laws are supposed to be applied (by judges, bureaucrats, etc) with discretion and common sense, not mechanically. Of course, that can sometimes result in injustices – exceptions being made for some people not others for reasons of political or societal biases – but it also avoids a lot of injustices: thoughtless/mechanical application of the law can result in outcomes which the legislator never intended and few would consider just or fair or reasonable.
I think, if we actually started applying laws in such a mechanical way, we'd end up with laws changing a lot more frequently, and with a lot more special cases written in to them – now, if applying a law in a certain situation seems unreasonable, judges will often choose not to apply it; with mechanical application, they'd have no choice, and then the people negatively impacted would lobby the legislature for a change in the legal text, and they'd probably get it. It could also see increased use of executive clemency (the power of pardon), or its legislative equivalent (legislation retroactively declaring certain convictions null and void).
"law can result in outcomes which the legislator never intended"
But what has always baffled me, AFAIK, the original legislators don't file Amicus Briefs when the meaning of laws are argued in court. I mean in situations where the original legislator is still alive and of good mind, why doesn't the Judge just ask them what the spirt of the law is?
It wouldn't be about replacing judges and judgement with computers, but about having laws that are clear and minimally ambiguous as a starting point.
Laws can't even consistently get "and" and "or" right.