On Saturday, 22 April 2017 at 07:53:49 UTC, Johannes Pfau wrote:
OT but is there any benefit to identify events with strings? As
long as you use compile time only events I'd prefer a syntax as
in https://github.com/WebFreak001/EventSystem
(one benefit is that it's 100% IDE autocomplete compatible)
I guess if you want runtime registration of events identifying
by name is useful. But then you also somehow have to encode the
parameter types to make the whole thing safe...
I agree. Personally, I'd probably also start with something like
WebFreak001's ES and only think about how to add run-time
dispatch later if I absolutely need it.