News for hackers. Stuff that matters.
Re:What if we tested laws before passing them? by jgfoot on Monday December 13, 2010 @10:19AM (#2000676)
I was about to respond until I realized your post was a Swift-ian parody so sophisticated as to be almost over my head. Well done.

But if we were going to try to reduce the complicated, inherently human, and uncertain concept of law to computer code, surely you'd agree that a declarative programming language would be a better choice. Something like:

prohibits_free_exercise_of_religion(X) :- unconstitutional(X). respects_establishment_of_religion(X) :- unconstitutional(X). unconstitutional(X) :- not_law(X).

Now, all you have to do is write Prolog code to test for when a law prohibits the exercise of religion or respects the establishment of religion!

Re:What if we tested laws before passing them? by rntz on Monday December 13, 2010 @10:35AM (#2000726)
You have your Prolog backwards.

  foo(X) :- bar(X).
means that foo(X) is true if bar(X) is true, not the other way around. So your code would indicate that anything that's not a law is unconstitutional, and anything unconstitutional prohibits free exercise of religion (for example).
Re:What if we tested laws before passing them? by jgfoot on Monday December 13, 2010 @04:17PM (#2001998)
oh! that explains why my Prolog hacking has been so unsuccessful. Thanks very much.