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

> Then you have the Scala SBT build system and percent operator overloading.

SBT is a fractal of bad design, the funny function names are just the most superficial of its problems.

> I actually like how Rust does this. You don't overload the operators per se. You implement traits with named methods like Add that will allow you to use the operators. This, to me, is the best of both worlds.

It's still just an extra unnecessary indirection where you have to remember which is which. What Scala does is much simpler - the + method is called +, the / method is called /, and so on. Yes, defining a function called %++< is probably a bad idea, but defining a function called YqqZ is probably a bad idea too, and few programming languages feel a need to ban that.





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

Search: