Would it make sense to overload the arithmetic operators (std::ops) for everything that has an add, add_assign, mul or mul_assign method? I would love being able to write x += y; instead of x.add_assign(y), but I know that there are arguments against it, too. It certainly would make some heavy computation "feel" more lightweight than it is.
What's your opinion on this? If you are fine with it, I'd be happy to try and make e.g. Field: AddAssign + MulAssign + SubAssign + Neg, and CurveAffine: Mul + Neg.
Would it make sense to overload the arithmetic operators (
std::ops) for everything that has anadd,add_assign,mulormul_assignmethod? I would love being able to writex += y;instead ofx.add_assign(y), but I know that there are arguments against it, too. It certainly would make some heavy computation "feel" more lightweight than it is.What's your opinion on this? If you are fine with it, I'd be happy to try and make e.g.
Field: AddAssign + MulAssign + SubAssign + Neg, andCurveAffine: Mul + Neg.