Re: XHR constructor example

On Sun, 14 May 2006, Anne van Kesteren wrote:
> On Sun, 14 May 2006 14:05:57 +0200, Ian Hickson <ian@hixie.ch> wrote:
> > > >   var request = new XMLHttpRequest();
> > > 
> > > Given that it doesn't have to be a request I think 'r' is saver or
> > > perhaps just 'x'...
> > 
> > Please don't use single letter variable names for anything but loop index
> > variables (in languages that require those), it's generally considerd
> > quite bad practice.
> 
> Sure, give a me a sensible suggestion and I'll take it. Given recent
> discussions (you can post as well as retrieve) I'm not sure the original
> suggestion `var request` makes sense.

Does the example do a request? If so, 'request' is fine.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Sunday, 14 May 2006 23:48:32 UTC