=== on 21 Oct 2014, 15:46:35 Nicolas Peru wrote:
Is the different quotes (single and double) in the message intended ?

The example is not so clear with the printed/not printed message : if I assume that getTrue() returns true, message will be printed in both cases. What changes is that the getFalse() method is executed (and therefore it is where there should be a System.out.println )

=== on 21 Oct 2014, 20:00:30 Ann Campbell wrote:
\[~nicolas.peru]

re the message, typically I try to (remember to) distinguish between a char ('') and a string (""), although the distinction was not appropriate in this context, even though it went from one keystroke to two. :-)


re the example, yes, I had messed that up. Simplified it & now it's at least not wrong, although not as exhaustive as the one you gave me.

=== on 16 Feb 2018, 11:03:39 Alban Auzeill wrote:
Irrelevant for:

TypeScript, error: The '|' operator is not allowed for boolean types. Consider using '||' instead.

Swift, error: binary operator '|' cannot be applied to two 'Bool' operands.

ABAP, C, JavaScript, Objective-C, PHP, PL/I, RPG: There's no boolean type.

Python: Likelihood of confusion is low, operators are ``++or++`` and ``++|++``



=== on 7 Mar 2018, 17:07:48 Janos Gyerik wrote:
Irrelevant for Go: the "|" and "&" operators are not defined for boolean types.

