added mapCommand, unmapCommand APIs#4
added mapCommand, unmapCommand APIs#4jusopi wants to merge 1 commit intocreynders:masterfrom jusopi:master
Conversation
|
Thanks for the PR, but to be honest I'm not entirely sure whether this is useful... Personally I just map command functions as handlers and do not see the benefit of making them constructable, but YMMV. Do you know of any added benefits to making "classes" with execute functions instead of using plain functions? |
|
I think the encapsulation of the execute, result and error handlers within Of course this is a moot point if you are just nesting anonymous functions,
|
I thought this would be a good contribution to the API in that it adds functionality much like RobotLeg's command, event bus paradigm.