DOSC TWiki snapshot as of mid-2005

Top

LanguageProlog


Here's my two cents:

Prolog is really neat, with pattern matching and all....

... but it really sucks when you're banging your head against the wall trying to make it work



Okay, all better now... :-)



Chris Hawblitzel?, (prof. for ComputerScience68?), has these sage words for us all:

.....my sympathy towards anyone who's spent hours staring
at 2 or 3 lines of prolog code, wondering why it doesn't work.

- Chris


Prolog + the Music Man?

While eating a bit of pizza, I was just watching a bit of "The Music Man" on television (the new one with Matthew Broderick).

I was watching the scene when the Librarian is explaining to her younger sister that you should sing goodnight to your sweetheart.... but if you didn't know who that sweetheart was, you could just put in "Someone", and fill in the "Someone" later..... when I was instantly reminded of prolog:

goodnight_to(Someone).

or perhaps:

goodnight_to(Someone) :- sweetheart(Someone).

Of course, I'm not sure what this says about me... (either that I'm thinking about Prolog too much or that Prolog is a devilish language that takes over our minds.... or perhaps both.. :-)



RobinsonTryon - 16 Feb 2003