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

> Isn't this exactly the point of using a naked `self` instead of the reference `&self`?

Yes it is, but you only see it's a naked self if you look into the method. From the outside there's nothing in the name to indicate that it doesn't take a reference. So potentially it means that for every method call you need to check that it takes a reference to `self` instead of ownership. This would be especially annoying with third-party libraries.



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

Search: