If an operator is just syntactic sugar for a message send, how do I
coose an operator based on an expression evaluation?
For example:
if a
s += "text"
else
s = "text"
end
I should be able to write it something like this:
s ((a)? send("+=") : send("=")) "text"
Except the ruby compiler chokes on the syntax...
Joe