logoalt Hacker News

CyberDildonicstoday at 8:27 PM0 repliesview on HN

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.