Re: Inform: && and || precedence


20 Aug 1995 21:32:41 GMT

In article <1995Aug20.010724.24070@news.cs.indiana.edu>,
Sam Hulick <shulick@cherry.ucs.indiana.edu> wrote:

>[precedence of && and || in Inform]

The order of these operations comes from boolean algebra, so all good
languages should agree on them.

A handy mnemonic for remembering the precedence, inspired by minimalist
musicians like Steve Reich, is:

Not another xylophone orchestra!

(I.e., Not > And > Xor > Or.)

Some friends and I hit upon this mnemonic many years ago, and it turns out
to be just absurd enough to make it impossible to forget.

(Actually, I like Steve Reich. But it's still a good phrase... :)

Dave Baggett
__
dmb@ai.mit.edu ADVENTIONS: Kuul text adventures! Email for a catalog.
"Mr. Price: Please don't try to make things nice! The wrong notes are *right*."
--- Charles Ives (note to copyist on the autograph score of The Fourth of July)