Actually, I believe the challenge was to show a situation wherein
Evaluate() was an absolutely necessary tool.

The brackets came into the picture as a solution to avoid using
Evaluate(). Things that can now be expressed in bracketed expressions
used to demand the Evaluate() function to resolve their values... cuz
when you think about it, structVar[myVar] really IS a double
evaluation... first myVar, then structVar['evaluated-value-of-myVar'].

Actually there's a bunch of places where brackets won't work.
Assinging a stored procedure resultset directly into a struct element,
for instance:

<cfprocresult name="myProcResults['rs1']" />
 
won't work, at least on MX 6.1 whereas:

<cfprocresult name="myProcResults.rs1" />

works just fine!

So there's a few places where it won't work...

I've been accused of overusing brackets lately, but I've discovered
that my code is so drastically more readable because of the
color-coding differences between quoted and unquoted strings, that I'm
making infinitely fewer mistakes and spenting 10% of the
troubleshooting time I used to. Dots leave everything the exact same
color, and I can't see the details... it's all a big blob to mine
eyes. For me, even it means a bit more typing, having error-free,
readable code is the big priority.

Right, Sean? hehe

Laterz,
J

On Thu, 24 Mar 2005 18:35:29 -0000, Kerry <[EMAIL PROTECTED]> wrote:
> Hi, I remember there was a discussion on one of these lists about using
> brackets instead of eval and I think Sean challenged anyone to show him some
> code where brackets couldnt be used?
> 
> erm, is this one?
> 
> valuelist(qry[myvar])
> 
> (i hope im wrong....)
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199909
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to