[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AND and OR
- To: (BUG LISP) at MIT-MC, (BUG LISPM) at MIT-MC, BEE at MIT-MC
- To: BSG at MIT-MC, MOON at MIT-MC, NIL at MIT-MC
- To: Greenberg at MIT-MULTICS
- Subject: AND and OR
- From: BEE at MIT-MC (Bruce E. Edwards)
- Date: Sat, 29 Jul 78 20:29:00 GMT
- Original-date: 29 JUL 1978 1629-EDT
Time for another favorite flame. I can't stand the idea of using
AND and OR for control primitives. I can't think of a more obscure
feature, than using AND and OR for control primitives. It completely
obscures the purpose of the code. If you are using it for a boolean
value, then you should use AND or OR, but if you are using as a
selection mechanism, then you should use some other command.
I dont know why people persist in using AND and OR. It would seem
to be about as mnemonic to have a function
(COMPLETELY-CONFUSE-THE-READER-AND <form> <form> <form>) that
preforms the same operation. A function called IF can only
make code more readable. Maybe someone should come up with a syntax
that performs the control tasks of AND and OR and rename it.