← Back to context

Comment by amelius

5 hours ago

Well, I can keep the state, but a retained mode UI model does it for me :)

But then you have state in two places, user code and the retained-mode GUI framework, which need to be synced - that's where complexity creeps in. Immediate mode removes that redundancy and makes things simpler in many situations. It depends on your preference and what you're doing too, which approach suits better.