When it comes to UI programming, I tend towards declarative solutions to problems over imperative ones.
That said, this feels like an imperative solution to something that a state machine could handle equally well.
That said, this feels like an imperative solution to something that a state machine could handle equally well.