#35634 - 2003-01-24 10:21 AM
Continue and Break in FOR-NEXT loops
|
UNIDAD
Lurker
Registered: 2003-01-24
Posts: 2
Loc: IBIZA (SPAIN)
|
Hello !!
I am new at Kixtart. I discovered it at Microsoft Resource Kit, and found it very interesting.
Here is my question:
Are there any "continue" and "break" statements within FOR-NEXT and WHILE-LOOP structures, as many languages have. I think this statements make code easier to write and read.
Thanks for your attention.
|
|
Top
|
|
|
|
#35635 - 2003-01-24 10:39 AM
Re: Continue and Break in FOR-NEXT loops
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
No, there aren't.
It is on the wish-list. Search the "Suggestions" forum for the last post asking for continue/break and add your voice.
Ruud maintains KiXtart quite actively, and if a feature is popular enough it may well get into a new release.
|
|
Top
|
|
|
|
#35638 - 2003-01-24 04:08 PM
Re: Continue and Break in FOR-NEXT loops
|
Lee Wilmott
Starting to like KiXtart
Registered: 2002-09-17
Posts: 106
Loc: Bristol, UK
|
I'm with you Jens!
I think time would be better spent adding other features that would be more useful.
Such as Exp(), ReplaceStr(), RepeatStr(), any-to-any base numerical conversion and the declaring of constants to name but a few!
Lee
|
|
Top
|
|
|
|
#35649 - 2003-01-27 09:55 AM
Re: Continue and Break in FOR-NEXT loops
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
quote: it just means that you are too lame or lazy of coming out properly.
That's a pretty strong statement. Are you sure that people who code using "break" are lame and lazy?
We have had both "break" and "continue" in 'C' for as long as I can remember, and I consider myself and fellow 'C' coders to be diligent and professional.
"Break" and "continue" are language constructs which simplify code and make it execute faster. They formalise and standardise process control which makes the understanding and maintenence of the code simpler.
We don't need FOR/NEXT, WHILE/LOOP, or DO/UNTIL control structures - the processing can be emulated perfectly well with a couple of variables and GOTO, but who wants to write kludgy ugly code when there is a better alternative?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 661 anonymous users online.
|
|
|