Ah... this is why competition is good.
I don't have a new feature, per se, but I do have a pet peeve that came about from
porting an app written in another language to an online CF version.
The CFCASE portion of CFSWITCH is sorely limited in its ability to handle parameters.
It can't do ranges, and if it could it can't mix multiple parameters on the same line.
Look at the following case argument written in another language:
SELECT CASE carval%
CASE 1 TO 50000:H6.VL = "500":H7.VL = "500"
CASE 50001 TO 100000:H6.VL = "1,000":H7.VL = "1,000"
CASE IS > 100000:H6.VL = "2,500":H7.VL = "2,500"
END SELECT
5 lines of code, total. While you could do this without *too* much more CF code, this
is a very simple example. Doing U.S. ZIP code ranges, where you are selecting
combinations of individual ZIPs and ranges - can be coded in a LOT fewer lines if you
allow something like the following:
<CFSWITCH EXPRESSION="#variables.ZIPCode#>
<CFCASE VALUE="LT 93711">
...blahblahblah...
</CFCASE>
<CFCASE VALUE="93712, 93713 TO 93940, 93950, 94086 TO 95050">
...blahblahblah...
</CFCASE>
<CFCASE VALUE="GT 93940">
...blahblahblah...
</CFCASE>
</CFSWITCH>
I have statements like the above that in their native tongue take up a small fraction
of what CF needs to come to the same solution.
Of course, the price of this ease of coding may be horrifying performance for both CF
and Blue Dragon... but you asked ;D
---------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------
---------- Original Message ----------------------------------
from: "Vince Bonfanti" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Mon, 14 Oct 2002 17:04:32 -0400
>Yep, understood. That's why we're also planning to support the
>GetPageContext() function (though not in the service pack). We're
>hopeful that if we introduce anything that's truly useful in the way of
>new tags or functions that Macromedia will choose to implement them in
>CFMX.
>
>Here's an thought: do you have an idea for a favorite new CFML tag or
>function, but your request has fallen on deaf ears? Let me know what it
>is and I'll see if we can get it implemented in BlueDragon. That might
>give Macromedia some incentive to also implement it in ColdFusion.
>
>Vince Bonfanti
>New Atlanta Communications, LLC
>http://www.newatlanta.com
>
>> -----Original Message-----
>> From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
>> Sent: Monday, October 14, 2002 4:47 PM
>> To: CF-Talk
>> Subject: RE: BlueDragon (was RE: How is CFMX J2EE implemented?)
>>
>>
>> Not that I think the idea behind the newly introduced tags
>> are bad (in fact, quite the opposite) but I'm kind of
>> surprised that you're introducing new tags at all. I realize
>> that your intent with Bluedragon is probably not to be
>> "cross-platform" compatible (backwards compatible?) with
>> Macromedia's product, but this "splitting," if you will, of
>> the CFML language kind of worries me. Kind of like the early
>> M$ vs. Netscape days when each company would introduce their
>> own variants of HTML.
>>
>> --
>> Mosh Teitelbaum
>> evoch, LLC
>> Tel: (301) 625-9191
>> Fax: (301) 933-3651
>> Email: [EMAIL PROTECTED]
>> WWW: http://www.evoch.com/
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm