You can use strings for keys (on Railo) to avoid that problem and I
believe Adobe are in favor of that change too:
<cfset test = { 'eq' = "equals" } />
This also addresses the key case issues.
> Also, I'm not sure if this is part of the core CFML as defined by the
> Advisory Committee (wiki only seems to list functions and tags).
We're defining CFSCRIPT right now and struct/array literals will be
part of core syntax.
--
Sean A Corfield -- (904) 302-SEAN
CTO, Railo US -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
You mean like the returnformat= attribute on <cffunction> in Adobe
ColdFusion? The committee haven't voted on that yet so I don't know
whether it will be considered core or not.
> Realizing that current functions won't be changing it would be cool if
> there was a convention for the order of arguments for all future new
> functions.
Post-CFML2009, the committee will work on guidelines for vendors that
will (try to) address this sort of thing.
--
Sean A Corfield -- (904) 302-SEAN
CTO, Railo US -- http://getrailo.com/
An Architect's View -- http://corfield.org/