Design: Idiom for classes and methods that are customizable by the user?

Marko Rauhamaa marko at pacujo.net
Fri May 13 01:53:56 EDT 2016


Dirk Bächle <tshortik at gmx.de>:

>> For example, why do you need a key? Couldn't you simply pass the task
>> master class as an argument?
>
> The idea behind this is, to be able to select classes by giving a
> parameter on the command-line. So at some point a translation from a
> given "key" to its actual class has to happen, I guess.

I see. So are the task masters interchangeable? I would have imagined
they would modify the default operational semantics. If so, the task
manager should be fixed programmatically in the SConstruct file.


Marko



More information about the Python-list mailing list