It would be wonderful if Cicode introduced ternary operators.
In addition, it would be wonderful if Cicode didn't have to evaluate every single condition in a conditional statement if the condition was / wasn't met.
In the example below, sillyArgument is still called. Why?
INT
FUNCTION
DOStuff()
IF (1=1 OR sillyArgument(10) = 1) THEN
TraceMsg("True");
END
RETURN 1;
END
INT
FUNCTION
sillyArgument(INT sillyArgument)
TraceMsg("sillyArgument is called -- why?");
RETURN sillyArgument;
END
Idea business value
The value is in bringing Cicode into the 20th century. Ternary operators are used everywhere except Cicode. |
|
Idea priority | 3 – Some use to my company |