Closed MovGP0 closed 8 years ago
The publisher should not be a Functor (= class with single method; very old school), but a function (modern functional pattern).
Instead of:
Shience.Shience.SetPublisher(new MyPublisher());
The user should write something like:
Shience.Shience.SetPublisher(result => Log.Warn(...)); Shience.Shience.SetPublisher(MyPublisher.Publish);
The interface IPublisher would become obsolete.
IPublisher
:+1:
So something like:
void SetPublisher(Action<Results> publish)
?
Implemented in #13. Closing.
The publisher should not be a Functor (= class with single method; very old school), but a function (modern functional pattern).
Instead of:
The user should write something like:
The interface
IPublisher
would become obsolete.