I can. All the op= operators are centered on the left operand. That (if nothing else) makes "left stable" operations much more common than "right stable" ones.
Uh, I though that "right stable" operations were more common in Pike. Can you present some statistics which supports your claim?
When it comes to `|, I believe it's more useful if the order of the main data collection takes precedence over that of the change since it's typically the existence of the elements and not the order that one wants from the change.
All you have to do is put the "main data collection" to the right, and the "change" to the left, and you will get this.
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)
Previous text:
2002-12-03 22:33: Subject: `| and order on arrays
I can. All the op= operators are centered on the left operand. That (if nothing else) makes "left stable" operations much more common than "right stable" ones. It continues to carry down to the "left stable" realloc which often makes such operations more efficient too. Thus the main data collection is more commonly in the left operand and the (typically smaller) change to it in the right.
When it comes to `|, I believe it's more useful if the order of the main data collection takes precedence over that of the change since it's typically the existence of the elements and not the order that one wants from the change.
/ Martin Stjernholm, Roxen IS