> I thought somebody'd bring that up. > > No, it's consistent, perfectly consistent. If there's any > inconsistency in the naming, it's because the ones that stick > out are either objects in and of themselves (such as FORM, > URL, THISTAG, &c.), or nobody could think of a better name > (like REQUEST). > > Let's break things down. > > CF scopes are maps (or structs, if you prefer). They have > keys and related values. > > In the case of the VARIABLES scope, it maps local variables > onto their related values by their name. The scope is named > after what it contains, which is variables. The entities > contained discrete, unrelated in any way except insofar as > they're variables. > > FORM and URL OTOH, are not discrete. One represents the > contents of a POST request, whereas the other is a breakdown > of the query variables in a URL. The naming scheme is still > consistent. They could have called FORM "FORMVARIABLES", or > URL "URLVARIABLES" or "QUERYVARIABLES", or something such, > but they didn't. > > REQUEST is a bit of an oddity. It's just a scope whose > contents you can see over the space of a request, regardless > of whether you're in a custom tag, CFC, or whatever. They > could have called it GLOBALS or something like that, but they > didn't. There's nothing inconsistent about the name though as > it's just a bunch of variables that persist over a > *single* *request*.
You are trying way too hard to justify your position. I can guarantee you that no one at Allaire spent as much time figuring out how to name variable scopes as you've spent figuring out how to fit them within your argument. You are seeing patterns where none actually exist. All of these scopes are, for all intents and purposes, identical in what they do. They all contain variables. It's not just the Variables scope that contains variables. The variables within the Variables scope are no less or more related to each other than the variables in any other scope. The variables within a form post or a query string are no more or less discrete or interrelated than those within the Variables or Request scopes. The Form scope is no more or less an object than the Variables scope. Programming languages, like any other human construction of any complexity, tend to acquire inconsistencies over time. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:200766 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

