I like your article since it resembles the command as in GOF and others but this pattern seems to me unnecessary in languages like Kotlin where functions and polymorphism is first class. Can't command be described with just a function?
Gennaro Daniele Acciaro
09/22/2020, 9:07 AM
Yes, it is possible to perform the action from a function, but there is the coupling problem between who calls the action and who performs it.
Using the Command Pattern, who calls the action doesn’t know who execute it, so if the “executer” changes he never know that 😄