3 ms·
There's plenty of commutative operations in everyday programming. a = f(c) b = g(d) can be rearranged if f and g take different input data, and calling indepe
by persnickety 3y ago
There's plenty of commutative operations in everyday programming.
a = f(c)
b = g(d)
can be rearranged if f and g take different input data, and calling independent functions is something seen literally everywhere in programming. Optimizing compilers often take advantage of that.