That was my biggest pain-point with using TS for graphics related projects. If operator overloading existed, then TS would be a no brainer for entry level graphics + AI/ML projects.
Edit: This gets more complicated when doing operations that force you to manually respect PEMDAS. For example, `add(div(a, b), multiply(c, d))` in TypeScript would simplify to `a / b + c * d` in Python. The TS version is unreadable.
const sum = a.add(b).add(c);This would give access to any math notation in a more flexible way, implementing a custom DSL in a type safe but expressive way.
Imagine writing stuff like
const result = math`${a} + ${b} / ${c}`