I don't know anything about the official Macromedia stance, however...

  Lists are (or at least were) stored Internally in ColdFusion as 
strings.  So, every time you performed a list operation, it was performing 
string manipulation.  Arrays and structures are (or were) more efficient 
than lists because of this.

  Let's say we have a list:

  <cfset MyList = "1,2,3,4">


  The question I ask is this:

  <cfset MyList = "0," & MyList>

  More efficient than this:

  <cfset MyList = ListPrepend(MyList, "0,")>


  Or does it not matter?  Each method adds a new item to the beginning of 
the list.

  It seems to me that it wouldn't make sense for Macromedia to recommend 
not using these functions, unless they were deprecated.


At 02:57 PM 11/6/2002 +0000, you wrote:
>Just reading 'Reality ColdFusion MX: Intranets and Content Management', came
>across this curious bit:
>
>"Notice that Toshi builds this list by creating it as a string, not a list,
>since Macromedia now recommends that you avoid listAppend() and
>listPrepend() if possible." (p. 231)
>
>Is this true? Why so? Did I miss a meeting?!
>
>I can't find any reference to this on the MM site or anywhere else. Seems
>like an odd way for MM to sneak in what would be quite an impactful
>recommendation - and not give any reasoning.
>
>Gyrus
>[EMAIL PROTECTED]
>work: http://www.tengai.co.uk
>play: http://www.norlonto.net
>PGP key available



--
Jeffry Houser | mailto:jeff@;farcryfly.com
DotComIt, Putting you on the web
AIM: Reboog711  | Phone: 1-203-379-0773
--
My CFMX Book: 
<http://www.amazon.com/exec/obidos/ASIN/0072225564/instantcoldfu-20>
My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to