@pervognsen@mastodon.social
@blackeggs@infosec.exchange Yeah, you can do it that way but it's too error prone to have begin_undo since if you allow unlogged updates to happen it will desync any existing undo/redo log entries. So it's better to always log changes. Keep in mind this isn't for all memory in the system. Just for the backing memory of the arena (or whatever) you're using for that data structure you want to be semi-persistent.
@blackeggs@infosec.exchange
@pervognsen@mastodon.social ahh ok, so there would just be a undo_snapshot function that creates like a bookmark since the last boundary point.