The concept of law is a complex one, and it is not easy to define.
The most important property of a program is whether it accomplishes the intention of its user.