House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

Another Best practises question

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
David Adams
02/19/2004 03:19 PM

Is there a better way of writing: <cfif ArrayIsEmpty(arr_one) AND ArrayIsEmpty(arr_two)>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Kenney
02/19/2004 03:56 PM

Probably not.  There might actually be a more compact way of doing this test, but the great thing about the code you posted is that the function names convey clearly what the intent of the test is. Paul Kenney WebMaster, CorporateWarriors.com 916-663-1963 Is there a better way of writing: <cfif ArrayIsEmpty(arr_one) AND ArrayIsEmpty(arr_two)>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Charlie Griefer
02/19/2004 04:22 PM

I'd agree with Paul.  The only other way I could think of is: <cfif NOT arrayLen(arr_one) AND NOT arrayLen(arr_two)> which isn't necessarily any more compact, nor is it any more readable in the code.  Any performance differences between the two would be negligible at best. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 21, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference