zcourts/higgs

Adding type safety to the events API

zcourts opened this issue · 2 comments

not-to-self for the coming weeks:

The events API makes async concurrent programming simpler by taking advantage of Netty 4's new thread model which takes away the need to worry about synchronization etc.

It's become apparent however that using strings as event topics become unwieldy in a decent sized project. To address this the plan is to make it possible to do type safe events by using an approach similar to QT's signals and slots. Based on my experience with QT this approach works really well especially in regard to type safety.

http://qt-project.org/doc/qt-4.8/signalsandslots.html for more info.

0.0.2 release adds some level of type safety with the Event interface