|
|
|
|
|
by ggm
1118 days ago
|
|
Minor thing. Purely as a side: in C and C++, the conditional statement is written using if and else, while the conditional expression is written with a ternary operator ? and :. ending a sentence with . is a must. Including a period directly after a syntactic construct about ? and : is .. jarring because it is possible to attempt to read this as :. as an atomic construct in the language. Or even worse, the three-dots pyramid in some mathematical proof notations. |
|
In C++, the lexical construct you describe is an atomic operator[0] and neither an expression nor a statement:
0 - https://en.cppreference.com/w/cpp/language/operator_other