I had inquired as to the possibility of adding strong typing during the last
beta, but was quickly silenced by the backward-compatibility and internal
architecture issues it would cause.  Even if typing was optional, the
internal logic branches in CF to handle typed vs non-typed variables would
be horrendously complex.

I for one would love to see CF move into the strongly-typed world, but I'm
not holding my breath.  It's been making such incredible progress and is
already so feature rich, that all of my wish-list items are pretty
insignificant by comparison.

Roland Collins

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Doug Keen
Sent: Monday, December 29, 2003 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] <cfmethod>

Perhaps CF could support "optional strong typing", kind of the way 
ActionScript 2.0 supports strong typing (<CFSET myNumericVar:Number = 
100>... muy sexy!).  Then method overloading could be performed at 
compile time and restricted to only those methods with strongly typed 
arguments?

Sean A Corfield wrote:

> On Dec 29, 2003, at 12:08 PM, Adam Cameron wrote:
>
>> I was thinking of entering a "wishlist" suggestion to MM along the lines
>> of a <cfmethod> tag that could be used in a CFC to faciliate
>> overloadable methods.
>
>
> Overloading works by analyzing a function call against the possible 
> function signatures that can be called. The set of available functions 
> to call is filtered down to just those that can actually be called 
> with the given arguments. Then that set is reduced to a "best match". 
> That sort of analysis is expensive and that's why it's a compile-time 
> feature of Java, C++ etc. ColdFusion is a type-less language (almost) 
> so the only way overloading could be implemented in CF is at runtime. 
> The overhead would be prohibitive.
>
> Sean A Corfield -- http://www.corfield.org/blog/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' in the 
> message of the email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported
> by Mindtool, Corporation (www.mindtool.com).
>
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[EMAIL PROTECTED]



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[EMAIL PROTECTED]


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to