Top "Operators" questions

Understanding Python's "is" operator

The is operator does not match the values of the variables, but the instances themselves. What does it really mean? …

python operators
What does ":=" do?

I've seen := used in several code samples, but never with an accompanying explanation. It's not exactly possible to google its …

operators colon-equals
Conditional XOR?

How come C# doesn't have a conditional XOR operator? Example: true xor false = true true xor true = false false xor …

c# operators xor boolean-operations
Imitating the "IN" Operator

How can one achieve: if X in (1,2,3) then instead of: if x=1 or x=2 or x=3 then In other words, …

excel operators in-operator vba
Why is "||" the symbol for or?

I know that || represents the logical operation "or", but I'm curious if anyone knows the history of choosing that symbol. …

syntax operators history bitwise-or logical-or
What does bitwise XOR (exclusive OR) mean?

I'm trying to understand the binary operators in C# or in general, in particular ^ - exclusive or. For example: Given …

math language-agnostic bit-manipulation operators xor
What's the difference between ++$i and $i++ in PHP?

What's the difference between ++$i and $i++ in PHP?

php operators
What is the "->" PHP operator called?

What do you call this arrow looking -> operator found in PHP? It's either a minus sign, dash or …

php operators terminology
What does << mean in Ruby?

I have code: def make_all_thumbs(source) sizes = ['1000','1100','1200','800','600'] threads = [] …

ruby arrays operators
"is" operator behaves unexpectedly with integers

Why does the following behave unexpectedly in Python? >>> a = 256 >>> b = 256 >>> a …

python int operators identity python-internals