On Thu, Nov 26, 2009 at 9:14 AM, Alan Williamson <[email protected]> wrote:
> I've started to push the common tags out to CFML functions already, so
> we have QueryRun() etc that are there.   I have a rough prototype of a
> generic tag-runner function, but to be honest, its somewhat clunky and I
> am not happy with it.
>
>   runTag( "cfquery", {attributes} );

FWIW, the CFML Advisory Committee wrestled with this issue long and
hard and couldn't reach consensus. We ended up split between several
options, put it out the community to vote (via my blog), reviewed the
community feedback and still ended up deadlocked :(

Overall, the committee felt implementing tags-as-objects (CFCs) was a
hack and wasn't the right long-term solution. Adding built-in function
equivalents for every tag split the committee almost completely down
the middle. A general syntax of:

tagname( attributes-as-arguments ) { body }

got the most support but we were unable to agree on how to handle
cfquery and cfmail in the general case.

Adobe's implementation in CF9 is a mix of tags-as-objects and
something close to the above syntax:

tagname attribute-list { body }

It's something we'll have to revisit for the next revision of the spec.

> I feel it should be "cleaner" than that.

Yeah, that was our problem too... all the proposals had aspects that
felt "dirty" in some use cases :(

> oh that was easy - so i can develop this as a separate plugin with out
> touching any of the existing OpenBD code.   Once we get to a stage where
> we feel this is ready, then I can simply override the <CFSCRIPT> code
> and look for the "lanaguge=''" attribute and switch accordingly.

OK, great. Thanx. I hoped that would be the ultimate goal. Railo is
considering supporting additional languages via the <cfscript> tag at
some point too (most likely Java first, although JavaScript support is
definitely interesting too).
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies US -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 mailing list - http://groups.google.com/group/openbd?hl=en

 !! save a network - please trim replies before posting !!

Reply via email to