Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>At the most basic level, in Rust you cannot overload operators

I gave you a working example of operator overloading in Rust a while ago.

Why do you still state that Rust doesn't allow that? Is there a problem with the example?

I know a lot of different languages and have a feature matrix for reviewing them, and I would know if operator overloading didn't work since it's a row in there. It definitely does work in Rust (it's similar to Python's operator overloading).



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: