4 ms·
I think the order of operations here is important. Take, for example, the case of operation == "/" and b == 0. You might find it valuable to log that you're d
by daeken 8y ago
I think the order of operations here is important. Take, for example, the case of operation == "/" and b == 0. You might find it valuable to log that you're doing a division, before it catches fire due to the divide by zero. Obviously a contrived example, but that was my thinking with the inner function. Either way, pretty straightforward.