I've talked about this in part in other posts and on other blogs. It seems everyone I talk to about it thinks its a good idea, but that doesn't mean it will happen.
What am I taking about, well it is now common knowledge that ColdFusion 9 will support full script syntax, that means that if you wish you can write all your cfc's without a single tag.
Great, cant wait, there is no place for tags in clases IMHO, and yes they are classes as far as I am concerned not components.
Adobe are on a big push about how ColdFusion 9 and Flex 4 will play so well together, well if they are serious about this, they need to bridge the gap and do it now, not in ColdFusion 10 or later, as they will miss the boat.
And by bridge the gap, I mean, they need to have a common (or similar) syntax between both ColdFusion & Flex. There is no reason they cant do this, the cfc's are parsed and compiled before anything is executed, so its just a bit of extra parsing.
Some examples, if I may
Script: var q = new Query();
ActionScript: var q = new Query();
Now technically ActionScript 3 would have
var q:Query = new Query();
But seeing as ColdFusion is loosly typed, this isn't necessary, thus the above two are equilivant, perfect, Im a happy man.
But this isn't always the case.
Script: Component {
ActionScript: public class {
This one annoys me, why ColdFusion people needed to call a class a component is beyond me. Especially annoying since a component in Flex is something completly different, everyone else calls it a class, so lets call it a class.
The next one is annoying because of how often you write it
Script: private function query getEmployee(employeeId) {
ActionScript: private function getEmployee(employeeId):query {
now this might seem minor, but if you are swapping back and forward from CF to AS all day, it will be very annoying.
Now the major reason they should do this and now, is that there are a lot of legacy Flash developers, moving to ActionScript 3 and Flex who are looking for a back end. They try things, I've seen them on twitter asking what to use, amfphp, weborb, coldfusion. Now if coldfusion supported an actionscript style syntax, it would be a no brainer, and we might turn a large user base of ActionScript people over to ColdFusion.
Now, I'm not saying we should drop old school cfscript syntax or tags, these should work also, as backward compatibility is important, but there is no reason why the parser cant support both. I urge all you who agree to comment, post a blog, comment on the Tim Buntel or Ben Forta blogs. Make a noise and lets lock in a long future of Flex and ColdFusion.