I think you're missing out on one of the most basic and powerful constructs in CF (and many other languages) then. I also think you may not be seeing the forest for the trees. Every time you reference a url, form, application, session, etc., variable you're working with structs. Does it get any easier than <cfset session.loggedIn = true> ? Not by much, if at all.
The only difference, to me, between structs and arrays is one uses a string for the key and the other uses a number. For your purposes of this CFC, you're just using a 2D array as a 'container' for a few things, so you're not going to get the performance benefit of an array vs. a struct (arrays perform better than structs with a large number of keys). You're also not getting the benefit of simplifying the references to the queries contained within the 'container' by using struct notation. By all means, do what you're comfortable with, but to my eye, you're adding a needless level of complexity to your code to adhere to an odd standard of what 'basic' constitutes. On Tue, Jul 10, 2012 at 8:05 PM, Matt C <[email protected]> wrote: > Lol, well let me rephrase that by saying I'd want this to be useable by > someone who isn't a developer by trade and only occasionally dusts off his > programmer mits. And personally I usually consider Arrays to be the > threshold of "basic". Even I'm a little rusty on Structs, and I've been > programming in CF for years. I just haven't needed them. *shrug* > > On Tuesday, July 10, 2012 12:49:59 PM UTC-4, Matt Woodward wrote: > >> Totally different topic but the most basic of CFML programmers needs to >> at least be familiar with the basic data types and collections available in >> CFML to be of any use to anyone. Just sayin'. :-) >> > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/group/openbd?hl=en > -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
