Sunday, March 9, 2008

Absurd Erlang FAQs

From the Erlang FAQ:

Picture 2.png

There are two oddities here.

The first string is, of course, absurd. A fool could see that. It isn't quite as bad as a Prolog example I once saw:

> lessthan(clergyman, avocado).
yes
.

But it's getting there.

And then there is the justification of the silly function placing with hysterical raisins. This is a common theme in Erlang, actually; hide perfectly simple functions in strange modules that no-one uses, then claim historical reasons when they are unearthed.

4 comments:

  1. Comment from roosta:

    it's used by three people for checking cinema timetables in the real world.

    Ha...it's so true. I even used it for such a purpose last night.

    ReplyDelete
  2. Comment from Zach Beane:

    You've never used "quick brown fox" for a scratch string?

    ReplyDelete
  3. Comment from Robert Synnott:

    I have, but I've generally drawn the line at anything which shouts the word 'WIZARDS' at the end...

    ReplyDelete
  4. Comment from roosta:

    Somehow I managed to comment on the wrong post..

    ReplyDelete