in reply to Re^2: Event based programming: Callbacks or "Interfaces"?
in thread Event based programming: Callbacks or "Interfaces"?
I would use a class based approach if cutting up the domain into classes made sense (do you have common behaviour where inheritance would make sense . . . Otherwise callbacks would probably be best.
Except that you probably won't get to choose. The decision will be forced on you by the GUI toolkit you use. I suppose you could write a glue layer to transfer between the two styles, but the added complexity may not be worth it.
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
|
|---|