without using third variable temporary storage , variables contents rotation? such special equal(-sign) operator?
efficient code beautiful code.
readable code beautiful code, there isn't better way using temporary variable.
if wanted use few xors.
since
x := x xor y y := x xor y x := x xor y switches 2 variables. can xor ^ in autohotkey.
however, compare to:
c = a = b b = c it's long, using temporary variable more readable. , cost of creating variable isn't going matter, no matter system making (especially if making in autohotkey).
Comments
Post a Comment