Type: Feature Request
Status: Closed (View Workflow)
Resolution: Out of Date
Affects Version/s: 4.2.1.008
Fix Version/s: None
Both PHP and Ruby (and no doubt various other languages) have a formal concept of mix-ins.
PHP does it with traits http://php.net/manual/en/language.oop5.traits.php; Ruby does it with modules: http://ruby-doc.com/docs/ProgrammingRuby/html/tut_modules.html.
Having messed around with both, I find it a good technique for composing a class, and would alleviate a lot of the artificial dependency injection CFMLers need to do to effect similar results.
This has kinda been raised before -
RAILO-65 - but this was closed, due to - I think - Micha not quite "getting it", as his explanation missed the point.
I think it should be reconsidered, but after Micha's done more research and experiementation as to how other languages leverage this sort of thing.