Calvin Ward wrote:

> Variables is plural
> Request is singular
> 
> They both can hold the exact same kind, type and structure and usage. The
> only difference is where they can be accessed from. But the entities within
> both structures can be the same.
> 
> I don't think we're going to find consistency here.

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*.

K.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200760
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