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

Why would they need them at the same time? The overall state will contain the button.

Many interactive programs can be GetInput(); ChangeState(); DrawState();

Why wouldn't their lifetimes be isolated?

Also the drawing doesn't need a mutable reference.



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

Search: