Agreed - I would suggest not to use round brackets, but use squared.

You can't tell if _screen.caption = myxyz(14) refers to calling a
procedure with a parameter of 14, or the 14th element of an array.

It would be helpful to *new* (or any?) developers joining a project that
they can distinguish the difference between an array and a function,
just purely by looking at it.

Saves them time, rather than searching through the code :-)


Robbo.

Rob Anderson | Software Engineer | Pegasus, an Infor company | Tel: +44
(0)1536 49 5006 | Fax: +44 (0)1536 495214 | Mobile: +44 (0)7917 615401
Orion House, Orion Way | Kettering | Northants | NN15 6PE | UK
www.pegasus.co.uk

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of MB Software Solutions
Sent: 04 December 2007 16:00
To: [email protected]
Subject: Re: Stylistic declaration choice for local arrays

Ed Leafe wrote:
>       For readability, I *never* use parentheses with arrays. Square  
> brackets are much less ambiguous:
>
> LOCAL laTables[14]
>
>       Since I tend to have lots of variables in the local declaration,
I  
> don't use the ARRAY keyword, since I find this confusing:
>
> LOCAL ARRAY laTables[14], lcFoo
>
>       Is lcFoo an array? You might be able to guess by the Hungarian
'c',  
> but maybe it's a typo, or written by someone who doesn't follow  
> Hungarian precisely. Or maybe they meant an array of character values?
>   

When seeing your example above, I see your point about confusion.  
Thanks, Ed!

-- 
Michael J. Babcock, MCP
MB Software Solutions, LLC
http://mbsoftwaresolutions.com
http://fabmate.com
"Work smarter, not harder, with MBSS custom software solutions!"



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to