#81461 - 2002-12-30 07:21 PM
Re: Evaluation of conditional expressions
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I agree short circuiting conditionals would be beneficial. Once the condition is determined to be either TRUE or FALSE then further processing of the line is not needed.
|
Top
|
|
|
|
#81465 - 2003-01-02 05:30 PM
Re: Evaluation of conditional expressions
|
BrianTX
Korg Regular
Registered: 2002-04-01
Posts: 895
|
I'll add my support to this idea! It would simplify some coding.
In an "AND" operation, if the first condition is false, there is no need to evaluate the second condition. The result will always be false.
In an "OR" operation, if the first condition is true, there is no need to evaluate the second condition. The result will always be true. Evaluating only the first condition unless the second is necessary would definitely speed up sorting algorithms, AND make the coding simpler.
Brian
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 515 anonymous users online.
|
|
|