programming
General Programming
Ternary Operators
Are there any non-conditional ternary operators? As asked here, The answer there suggests that no, there are no ternary operators, and you might as well call a function.
However, upon thinking more, unary and binary operators make sense because they naturally split a linear progression of text. A binary operator conjoins the “left” and “right” text. A ternary operator doesn't exactly fit into this model. However, a quartary (4 way) operator would make sense if code was 2 dimensional. The arguments to the operator above and below, not just left and right, would be included.
programming.txt · Last modified: by carl
