Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.1.008
    • Fix Version/s: None
    • Labels:
      None

      Description

      See http://blog.adamcameron.me/2014/09/looking-at-phps-oop-from-cfmlers_10.html

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                adamcameroncf Adam Cameron
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: