tracker issue : CF-3832140

select a category, or use search below
(searches all categories and all time range)
Title:

Formal mix-ins

| View in Tracker

Status/Resolution/Reason: Needs Review//

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 09/26/2014

Components: Language, Wishlist

Versions: 11.0

Failure Type: Enhancement Request

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Platforms All

Vote Count: 2

Extract from https://issues.jboss.org/browse/RAILO-3215:
{quote}
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.
{quote}

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3832140

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

To make the language on par with other modern languages out there
Vote by External U.
10819 | October 08, 2014 12:58:29 PM GMT