Postby satoon101 » Mon Jun 15, 2015 1:38 am
Well, the two are quite different. With commands you either want to block or continue. In fact, the only way to block is to return a False value. None or True type (or, since None, not returning anything) values will result in the command continuing.
With hooked functions, any type of value can be returned. The return value is more specific than simply continue or block. So, only returning None (or returning no value at all) is the only way to "continue". That being said, we "could" have a value for continuing that is "is" None, but there is no possible way to have a HookAction.BLOCK, as that value could be anything. That is, unless we required 2 return values, but what would be the point in that. I think proper documentation will help make this clear to everyone what is expected within a hooked function.