c++ - Coding with '&&' instead of 'and' operator -
i see, c++ compilers support &&
, textual equivalent and
operator (similar ||
operator or
). tend textual form compare special character form. but, discouraged using textual form of such operator without concrete reasoning. don't think, textual form require more typing compare special character form. also, there won't on compiler overhead on parsing part. why major c++ community tend towards &&
instead and
. while think, textual form clear while stating condition beginner. promote more poetry style coding rather bombarding code gibberish character.
just personal preference here; visually &&
breaks 2 identifiers better and
does. @ glance bit quicker mentally parse expression.
Comments
Post a Comment