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

Assuming you use smart pointers, you'll want overloading for pointer operators as well, even if you're not implementing the smart pointers yourself.


I'm not however sure that applies to Rust. And frankly I care a lot less about the pointer operators for smart pointers. Any old accessor is decent, and I find the overloaded pointer operators sometimes confusing. At the very least it's not quite as obvious as it is for math operators.




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

Search: