-
Recent Posts
Recent Comments
Archives
Categories
Meta
Monthly Archives: September 2015
?: beyond the ternary operator (PHP surprise)
Here is a famous ternary operator in C: condition ? A : B It can also be conveniently chained: condition1 ? A : condition2 ? B : condition3 ? C : D The evaluation of the conditions are in turns: condition1, condition2, … Continue reading
Posted in programming
Leave a comment