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

In early rust, you actually did need to explicitly write `move` to move a value. However, this was extremely annoying as you move values a lot so moving was changed to be the default, which is far more tolerable.

EDIT: There still is a `move` keyword, but it is used to indicate that closures should take ownership of their environment vs. just borrow values from it, not to move individual values.





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

Search: