These are chat archives for jdubray/sam
we must come to the realization that in an action-based programming model the concept of “control state” will have to be emulated in some ways, or the system will not be able to respond to actions correctlyshould be illustrated with pseudocode examples showing the problems explained in the text, it is exactly because it is a very simple example that it is the best place to illustrate what is the problem with purely actions-based approaches.
@victornoel The paradigm shift can be summarized in this paragraph:
In structured programming, correctness is achieved with the use of conditional expressions: “if-then-else” or “switch-case”, which tend to focus the attention of the developer on the what needs to happen, i.e. mutation, actions, without requiring the precise identification of (control) states nor if the mutation is complete, i.e. where the system/code is currently at