> Why they decided to start the index at 1 and not allow relational or 
> assignment operators is completely baffling. It makes sense
> with tags but not with script.

CFSCRIPT isn't an entirely separate language from CFML. It has
different syntax and statements, but shares the same operators, and
commands map to the same underlying functionality as far as I can
tell. That is, if you loop in CFSCRIPT using a for-next loop, it's
going to generate the same Java bytecode as the analogous loop in
CFML.

One-based indexes don't make any more sense with tags than they do
with script, either - if you're new to programming entirely, they seem
acceptable, but if you have any prior programming experience they
don't seem like such a good idea (or at least they're not what you're
used to). My theory about that is that CF was primarily aimed at
people without a lot (or any) prior programming experience.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335182
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to