in reply to Re: A set of new operators. In keeping with the design of Perl?
in thread A set of new operators. In keeping with the design of Perl?

It wasn't an efficiency issue (for a change:), it was my other windmill, that of elegance, 'once and once only', duplcated code is two chances to get wrong etc.

Realise that there i no way to avoid (in assembler terms), loading the two values, comparing them, branching if condition not satisfied, do the assignment.

But avoiding the need for the programmer to type the terms twice each as well as the potential for invoking the rvalue expression twice when it could be a volatile function or one with side effects appealled to me.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
  • Comment on Re: Re: A set of new operators. In keeping with the design of Perl?