3-D Programming Logic

by Ben Ocean <beno(at)cnw.com>

 Date:  Sat, 15 Apr 2000 18:11:54 -0700
 To:  hwg-techniques(at)mail.hwg.org
  todo: View Thread, Original
Hi, all:

I'm doing quite well with my first programming project in PHP/MySQL. Thanks 
to all that recommended this path: I find it quite easy and intuitive. 
However, I've noticed a flaw in basic programming PHP logic that I believe 
is fundamental to all programming logic. The logic is 2-dimensional. 
Example: I've programmed my search engine according to nested *IF* 
statements. I have 3 variables for which I am testing. As a result, after 
testing through 3 nested *IF* statements, I still have to go back and test 
for other possible combinations, and, of course, have to be careful to not 
erase the results I may have garnered before testing for the conditions 
that are outside of the nested *IF* statements. This, of course, is 
unnecessarily redundant, and therefore bespeaks a basic flaw in programming 
logic.

This flaw is inherent in the fact that current programming logic is 
2-dimensional. The *IF* *THEN* *ELSEIF* logic needs another alternative. 
When I have 3 nested *IF* statements, there needs to be an alternative path 
that allows for not satisfying the 2nd statement but satisfying the 1st and 
3rd. This would do away with the aforementioned redundancy.

Is there such a language? Such a language would be 3-dimensional by nature. 
The mind, of course, works this way. Is anyone working on such a language? TIA,
BenO

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA