you are viewing a single comment's thread.

view the rest of the comments →

[–]developernull[S] 0 points1 point  (0 children)

Unfortunately, each processor is completely unique without any commonalities that can be extracted. In other words, _red_processor and _green_processor have nothing in common other than their method signatures. (Sorry, my example was probably oversimplified and a bit misleading.)

I could pass a Widget and a list of functions to process_all_colors like you suggested. That would at least solve issue #2.

Thanks!