No way. Software works for predictable inputs producing well-defined desired outputs. Reality is nothing like this.
Actually good rule systems are ambiguous or weak enough that when someone tries to abuse edge cases, people can turn round and say "no" and the rules don't get in the way.
(mostly) Everyone likes this flexibility.
The question is some people find the cost too much.
Maybe it is better to have a law that is explicitly dumb, in exchange for fast, cheap and predictable (kinda like computers, if you think about it)
But we've been having bugs and exploits in software since the beginning. And law has to cover an even wider field of situations.