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

The pattern you're looking for is:

``` fn operate_on_a(a: A) -> A { // do whatever as long as this scope still owns A a } ```



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

Search: