in reply to block-based programming...
Now the key flow issues are put somewhere where the redo logic is very easy to understand and is not intertwined with the grungy details of the steps. It would be easier, for instance, for someone who didn't know the code or technique to look at this and figure out how to add a "give up" option on those redos, or to have F-H by default fail back to F rather than C.EDIT_MAP: { attempt_edit($map); redo EDIT_MAP unless can_parse($map); redo EDIT_MAP unless user_confirms($map); attempt_edit($reverse_map); redo EDIT_MAP unless can_parse($reverse_map); redo EDIT_MAP unless user_confirms($reverse_map); } commit_edit($map, $reverse_map);
|
|---|