Hello, everyone!
I'm talking about operators which not return a value but modify (overwrite) the first operand.
Example in pseudo-code:
add := return op1 + op2
increment := op1 = op1 + op2
Given this mapping schema:
add -> increment
subtract -> decrement
What could possibly be the names for other operators?
multiply, divide, power, ... (what else?)
I was thinking about add->selfAdd
, multiply->selfMultiply
, but these names are somehow stupid.
NOTE: What's all this for? It's for an experimental programming language. Because of certain circumstances there may be only words, no operator signs, so I can't use ++
for increment
or *=
for selfMultiply
.