Re: GOTO - Reply
- Posted by Colin Taylor <71630.1776 at COMPUSERVE.COM> Sep 24, 1997
- 767 views
Jiri wrote: >I am not advocating The Return Of The Dreaded Goto, but I also think >the claimed advantages of encapsulation/variable hiding, even in an >object oriented environment, are more a matter of philosophical >purity/religious zeal than of any practical value. And since Euphoria >is *not* an object oriented language, any such restrictions just do >not make sense, and have a whiff of PC (not Political, Programming >Correctness) about it. Lets see... On one side we have the programming left (hacker/anarchists?= ) and on the other side we have the programming right (IBM suits?). I, for= one, believe that there is a middle ground where those of us who try to survive on our accumulated experience (having exhausted most of out menta= l jet-fuel) try to program in an organized way to avoid becomng hoplessly confused. Us middle-grounders have learned that certain rules-of-thumb, conventions, coding styles, etc. not only make it easier to write and deb= ug programs, but may even make it easier for others to understand our work. Euphoria is pretty flexible compared to most structured languages. How w= e use this flexibility is a matter of personal preference, but as in other aspects of programming, the things that we learn from our own experience can benefit others who are learning the language. One of the things I ha= ve learned is that global variables have a down side. They should be used judiciously. Sometimes I think that a *read-only* variable type would be= better. Maybe others of you also have learned lessons the hard way, or have usefu= l rules of thumb which would benefit others. If you do, let us hear about them! Colin Taylor