Don't forget that you can avoid implementing every method in an
interface by using an adapter.
Either way, I'm happy to know that interfaces are coming.
Cliff Meyers wrote:
A friend of mine attended cf.Objective() and told me that Tom Jordahl
gave a talk saying that Adobe WILL be adding interfaces to CF8. And
no, I don't think that includes strong-typing CF. :) As Sean and
others have discussed previously on this list, the work to rewrite the
CF engine to support strong typing or nulls would be terribly
significant but provide comparatively little value to end-user. I
highly doubt it will ever happen. The primary question of how
interfaces will work in CF is whether it will simply be a collection
methods that must be defined (i.e., a component must define methods
"stop", "drop" and "roll" in order to implement the interface
FireSafe) or if interfaces will require typed arguments and a
returntype for each method, thereby requiring a much higher level of
specificity. In this latter approach, the method signature and
returntype would indeed be "strongly-typed" but this would not require
the entire CF runtime to be rewritten to support strong-typing in the
entire CF language.
Long story short, the addition of "strongly-typed interfaces" should
be feasible without requiring the entire language to become
strongly-typed. I think the notion that the two concepts (interfaces
and strong-typing) are inseperable is a misguided one.
-Cliff
On 4/3/06, Barry Beattie <[EMAIL PROTECTED]> wrote:
so we're all agreed then?
No interfaces until CF can be strongly typed (and support NULLs -
*ahem* ). Motion put forward and seconded.
if you want that sort of thing, use Mix-ins otherwise [EMAIL PROTECTED]@$-off
(ie:
look elsewhere)
glad we cleared that up. All this talk about Ducks has made me
hungry....IFryable....mmmm
--
Haikal Saadh, Applications Programmer
Teaching and Learning Support Services
K405, Queensland University of Technology, Kelvin Grove Campus
[EMAIL PROTECTED], 3864 8633
CRICOS No. 00213J
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]