On Wed, 06 Aug 2003 22:05:32 -0400, L Smith
wrote:
Roger Long wrote:
Got it! Damn parentheses. What a difference a ( ) makes.
I forget those every once in a while. :-)), at least in spreadsheets.
For me, one of the biggest pains in programming, and the cause of more
bugs and
There is so much math required to become a programmer, I'd think that
using parentheses would become second nature. Prefix, postfix, and
infix.
other problems than anything else, is trying to get my parentheses in
the right places.
You should try writing a compiler :-))
I've recently had the "opportunity" to work with the Scheme programming
language.
I've not heard of that, but I've been out of the business for over 5
years now.
What's one of the key structural elements of its syntax? Parentheses!
Parenthesis is pretty important in most programming languages and in
virtually all math that is done within the programs. It sets the
order in which operations are performed. True the operators such as
+, -, /, *, and ^ have their own precedence, but in the end they all
bow to the parenthesis.
In school we had a few exercises where we had to perform the same math
using prefix, postfix, and infix. Now that got *really* confusing. I
don't think I could do all of them now. Actually that's not true. I
know I couldn't do all of them now. :-))
Post fix is, I believe the same as RPN and I've never successfully
managed to use a calculator that used RPN.
Talk about a user-unfriendly language.
Try straight C using pointers and dynamic memory allocation. They
call it a write only language for a reason. :-)) Straight C lets you
do virtually anything with almost no type checking. You can add an
integer to an address, to a pointer, to a piece of text and it won't
complain. More recent compilers let you turn on type checking, or
more correctly they are set up for ANSI C and will allow you to turn
the type checking off if you wish.
Still...Write something in straight C without internal documentation
and then go back six months later and try to follow what you wrote.
It's a relatively elegant language that lets you write very compact
code, unlike the visual counterparts which are very easy to use, but
generate "bloat code".
Roger Halstead (K8RI EN73 & ARRL Life Member)
www.rogerhalstead.com
N833R World's oldest Debonair? (S# CD-2)
Rich Lemert