To "call" or not to "call"

W

William Morris

So, what's the prevailing opinion regarding the use of the "CALL" keyword?
I'm working with a third-party ASP application, adapting for our system, and
the CALL keyword is used everywhere. I've never used it, preferring instead
to just type the procedure name and parameters so:

myProcedure parm1, parm2

Any thoughts on

call myProcedure(parm1, parm2)

...?
 
A

Aaron Bertrand - MVP

Not really "after" anything much except opinions. Thanks, Aaron.

Well, my point was that I don't know what you mean by "better"... faster,
more accurate, less code, more common...
 
W

William Morris

Hey hey hey...I didn't say "better." But, if I had to pose my question more
specifically, I guess I was asking what's more common. If there just
happened to be something about the way the parser handles it differently,
I'd accept that too, but it was really just a request for opinions.
 
R

Ray at

I always use Call subName. I like seeing Call, because it's much more
obvious as to what's going on than just seeing some random work sitting
there by itself. I also like to use parentheses.

Call theThing(arg1, arg2)

theThing arg1, arg2

The former looks much better imo.

Ray at work
 
R

Roland Hall

in message : So, what's the prevailing opinion regarding the use of the "CALL" keyword?
: I'm working with a third-party ASP application, adapting for our system,
and
: the CALL keyword is used everywhere. I've never used it, preferring
instead
: to just type the procedure name and parameters so:
:
: myProcedure parm1, parm2
:
: Any thoughts on
:
: call myProcedure(parm1, parm2)
:
: ..?

I never use call unless I'm on my cell phone or unless I'm replying in
response to a NG post where someone has it in their code.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
 
D

Dave Anderson

William said:
So, what's the prevailing opinion regarding the use of the "CALL"
keyword?

I don't know about prevailing opinions, but I personally prefer it. It
simply makes the code more readable, IMO.

Then again, I use correct capitalization and parentheses for logic when I
write VBScript, so I'm a bit of a kook.

FWIW, microsoft.public.scripting.vbscript might represent a better barometer
for this.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top