3 ms·
Whilst I agree in general with the sentiment, it really doesn't help if you start with a misunderstanding of the command pattern. The essential property of comm
by moomin 11y ago
Whilst I agree in general with the sentiment, it really doesn't help if you start with a misunderstanding of the command pattern. The essential property of command is that it's data that can be executed. Implicitly, it's possible to do other things with them: log them, undo them and so on. A better model would be a record that implements IFn.