Hi micha
Taking your query loop example, why could it not be:
for (row in query){ // where "row" is either the "currentRow" variable, or the entire row?
}
or
for ({index,row} in query){ // capture both discretely
}
But, yeah, there are other examples wherein to get the thing into "function style" syntax
and preserve the nestability of the tag equivalent gets a bit torturous, eg:
q = new query("dsn") {
// some way of expressing both the SQL and the params here
}
What I more meant is stuff like this;
throw "message";
throw(message, type, detail, code, extended);
include "foo.cfm";
but not:
include template="foo.cfm";
or:
include("foo.cfm);
abort "error";
not:
abort("error);
Or how CF has got this godawful approach to doing stuff like <cfquery> and <cfmail> as CFCs, rather than as native implementations. What's
that all about (dunno if Railo does the same here).
I'd expect to just do this:
q = query(dsn, sql, params, [etc]);
Stuff like that. I don't think there's a great deal of consistency, and I think that let's CFML down a bit. And - like I said - I'm not targeting Railo or the developers thereof when I say this, it's just an observation and an opinion.
Cheers.
--
Adam