Re: earwax-server
@5 decorators are the pythonic way for making functions that take functions and return them transformed in some way (or in your case, performing side effects). however I would be very surprised if passing functions as arguments was entirely discouraged, since for some things it is the only practical way of doing things. and lots of model python libraries don't shy away from treating functions as first class values, like numpy off the top of my head.
also in regards to what if you dont want to define some event, then you can just have default arguments to the constructor, which are very pythonic indeed
I also prefer Camlorn's subclassing design to the decorators here. personally I am a composition over inheritance kind of guy, so I thought of my thing first, but I like the other one as well.
don't get me wrong, decorators are great when they make sense like flask's @app.route(), but just not seeing the value here.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector