tracker issue : CF-4010488

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

Formal mixins/traits for CFML

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/Duplicate

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

Created: 06/22/2015

Components: Language

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: 0

From http://blog.adamcameron.me/2015/06/what-id-like-to-see-in-coldfusion12.html

Add them in. I think PHP has a pretty good approach to these, but it'd be worth looking at how other languages do them. I think Ruby seems to have messed it up though, as there's a lot more effort in using them than their ought to be.

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

Watson Bug ID:	4010488

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

Attachments:

Comments:

I think mixins and duck typing is more of an anti-pattern than a real design pattern. I don't like this. Duck typing is the new spaghetti. Let's not invite people to code this way.
Comment by External U.
7166 | June 29, 2015 08:29:14 AM GMT
I think a bold statement like "I think mixins and duck typing is more of an anti-pattern than a real design pattern." needs slightly more qualification than simply stating it as if it in and of itself makes its point. Otherwise you're not really putting any sort of case forward. (I'm not married to the suggestion one way or the other, I just think your dissenting voice is somewhat empty as it stands)
Comment by External U.
7167 | January 06, 2016 09:52:43 AM GMT