3 ms·
> The first is not harder to read and not harder to write but I know exactly what's going on. For your example, maybe so. But: m = a * b * c + d * e + f w
by AnimalMuppet 8y ago
> The first is not harder to read and not harder to write but I know exactly what's going on.
For your example, maybe so. But:
m = a * b * c + d * e + f
will be clearer than three Matrix_Multiply and two Matrix_Add calls. And one screen full of lines like mine will be far clearer than five screens full of Matrix_Add and Matrix_Multiply calls.
- maxxxxx 8y agoI agree if it’s very mathy but I have seen operator overloading for things like invoices and orders. That’s just horrible.
- AnimalMuppet 8y agoOh, I agree. invoice++ is not better than invoice.addToSystem()