Over at Scott Adams' Blog you can find a very fine example of using the 'Rationality Engine' to solve the social problem of assisted dying.
In practice, there is no "the law" which is separate from a judge's decisions, so that's a meaningless question.
That's only true if you don't care about law making. Societies that don't care about the laws on the books usually get pretty messed up.
Over at Scott Adams' Blog you can find a very fine example of using the 'Rationality Engine' to solve the social problem of assisted dying.