Tuesday, November 15, 2011

Umm...Prolog?

Prolog is a really neat concept. The idea is that in a program, you give the computer facts and tell it how to recognize a solution, and then the computer finds all possible solutions. Great. I'm in the process of debugging a predicate (kind of like a function) right now, and I accidentally stumbled upon this:
Easter egg! It's like in Python: when you type 'import antigravity,' it opens up your default web browser to this page.
I love programmers' sense of humor.
Anyhow, back to debugging!

Edit: It seems that this is what happens whenever you ask the Prolog command line the value of a variable. Variables start off as unbound (nothing), so they had to come up with some kind of error message, and decided on a creative one.

No comments:

Post a Comment