Quote:
Originally posted by Raven_Writer
Goto's are a little confusing, but the if/then, select/case/end selects are more confusing. If they made the language like VB, than it would be better.
|
*cringes*
VB?
When I see VB in embedded systems, I'm becoming a material scientist instead of an electrical engineer.

I'll stick with a tried and true if...then..else and select...case iterative language for FIRST robot programming.
Gotos aren't the problem, it's how people use gotos. In the case of PBASIC 2, it's all you had to create looping structures. On the other hand, you could also weave your code into a indecipherable mound with intertwining gotos.
The if...then...goto structure was completely reverse logic to me. "If true, skip to the goto" made no sense to me because I wrote it like a standard if...then statement only using the opposite logic. Very confusing. I much prefer the standard if...then..else structure of PBASIC 2.5.
For more advanced designs, java may be the answer. 2.5 still gives me a leap in faith of PBASIC, though.
Adam