4 ms·
Nobody here is "introducing" the ternary operator or && for "and," they are standard punctuation in the world of programming. I agree that, in general, it miss
by dgreensp 14y ago
Nobody here is "introducing" the ternary operator or && for "and," they are standard punctuation in the world of programming. I agree that, in general, it misses the point of readability to say "just learn the terms first," but in this case I think one could certainly argue that the punctuation is more readable than the words, by making better use of word-vs-symbol cues to make the structure of the expression clear.
Finally, drop the idea that your view is "objective" and there aren't different opinions on readability.
- klibertp 14y agoI'm sorry, I shouldn't have said "objectively". But it's not my idea. I'm merely working with definitions provided by wikipedia. If you are aware of better source on this matter, please refer me to it. EDIT: what I mean is that discussing readability is pointless if all the participants have different definitions. I agree that the wikipedia page I linked to does not provide the best possible definition because it talks about texts in natural languages and we're talking about source code. Still, using not-the-best definition is better than using many different definitions.