By Peter Bell

Will CF Script Support Annotations?

One of the cool things about cf is that you can put arbitrary properties in your cfcomponent, cffunction and cfproperty tags and they're available via getMetaData() (even if in a strange way).

I'm just hoping that if we get the ability to create .cfs files (or whatever they get called - all script cfc's which don't require tags for cfcomponent, cfproperty or cffunction) that they'll still support the arbitrary inclusion of metadata into components, methods and property declarations. I'm guessing it's going to be necessary given where the language is going with ORM and the like which would suggest an annotation style - I just hope that style is supported and available in "all cfscript" class files. Perhaps a comment for the language committee?!

Thoughts?

Comments
Yeah, I am all about the .cfs file. Brad Wood is the first person I heard mention the .cfs file idea and I think it makes a lot of sense.

Half the benefit of this functionality is to bring developers from other languages more into the fold. That means reducing the weirdness needed to get a script-based component. Having to put <cfscript></cfscript> around each file would really be suboptimal and further away from the goal.

Bring on the .cfs file. Make the syntax like actionscript or groovy or whatever, just finally expose the ability to write all ColdFusion code in some standard language not needing tags.


DW
# Posted By Dan Wilson | 7/22/08 3:34 PM
That is a great idea! I really can't wait for full scripting support, it will make writing components less verbose and I am all in favor of that.
# Posted By Dan Vega | 7/22/08 4:13 PM
+1 :-)
# Posted By Peter Bell | 7/22/08 4:18 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.