In support of GP, my experience with judges and lawyers says the law* is much less fond of "rules lawyering" than engineers typically believe.
* to be fair, this varies with legal system: my personal opinion is that one finds significantly more successful rules lawyering attempts in common law systems than in code systems.
* to be fair, this varies with legal system: my personal opinion is that one finds significantly more successful rules lawyering attempts in common law systems than in code systems.