Hacker News new | past | comments | ask | show | jobs | submit login

I've recently had to deal with some code that did this for work (and also used operator* for dot product) and it made the equations incredibly difficult to read. Please don't make the mistake of doing this in your own code.



Using operator* for the dot product is straight up wrong, since multiplication between two vectors is well defined and used all the time.


Exactly.

Same with %: since we're talking about a number-like object, there's a clear and expected meaning for it and that is NOT cross product.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: