On 07/22/2016 09:00 AM, Peter Levart wrote:
If you think that such addition starts to become complex from combinatorial standpoint then what about passing an additional enum argument identifying a particular "event"? It would then be easy do document the rest of parameters for each event type...
...also, filter implementations then become more readable as they might use a switch statement on the enum parameter which would clearly stand-out in code and express the intent to all readers not only to those that read the documentation...
Peter