3 ms·
I upvoted the original post only because of this comment, which gets to the heart of the matter with a simple example anyone can understand. If the functions a
by cs702 11y ago
I upvoted the original post only because of this comment, which gets to the heart of the matter with a simple example anyone can understand.
If the functions aren't commutative, function order definitely matters!
- bad_user 11y agoCommutative functions are scarce. You can rely on having transitive functions, but not commutative ones and frankly, there aren't that many useful commutative functions possible. Yes, ordering matters, but if you cannot force ordering by protocol or by the types used, then the result is going to be non-deterministic by definition, which means it's not referentially transparent.