Re: Dim + the sign &
- From: christery@xxxxxxxxx
- Date: Thu, 14 Feb 2008 07:10:34 -0800 (PST)
On 14 Feb, 10:09, "Jan Hyde (VB MVP)"
<StellaDrin...@xxxxxxxxxxxxxxxxxxx> wrote:
"Mike Williams" <mi...@xxxxxxxxxxxxxxxxx>'s wild thoughts
were released on Wed, 13 Feb 2008 22:06:16 -0000 bearing the
following fruit:
"Larry Serflaten" <serfla...@xxxxxxxxxxxxxx> wrote in message
news:eU9G$hobIHA.5712@xxxxxxxxxxxxxxxxxxxxxxx
I never did understand why that was considered bad practise.
To say using a symbolic shortcut for more verbose wording is
bad just doesn't make too much sense to me. It would be like
saying using $3.95 is bad and it should always be written as
3 Dollars and 95 Cents. Who is at fault if a code reviewer
does not comprehend the purpose of a For/Next, or If/Then
block of code? Similarly so for the type declaration
I would tend to agree with you were it not for the fact the type declaration
characters are not as widely understood as the $ sign for currency (even by
programmers), as is evidenced by the number of questions which appear on
this and other groups from time to time. In fact, much as I hate to admit it
after having used Basic (and Visual Basic) for as long as I have, I do not
immediately recognise them myself. I know they are type declaration
characters, but I often get confused as to which character goes with which
type. Personally I much prefer to see Dim z as Long, etc.
Well, I can put it any better than that. I agree completely.
--
Jan Hyde
https://mvp.support.microsoft.com/profile/Jan.Hyde- Dölj citerad text -
- Visa citerad text -
hmm, in declaring a iValue as a integer and a sValue as a string I
think value% and value$ is nicer (not shure about the % it was almost
20 years ago) but the +value is that I can miss renaming my string (s)
to an int (i) if doing so in the dim iValue as String
and back then only 1 char in variables so
10 FOR I%=1 TO 10 STEP 1
20 PRINT "WHAT IS YOUR NAME NR:";I%;" ?"
30 INPUT S$
40 PRINT "HELLO ";S$
50 NEXT I%
60 END
Ahhh.... thaat wore the days,,,
//CY
.
- References:
- Dim + the sign &
- From: G Svensson
- Re: Dim + the sign &
- From: Bob Butler
- Re: Dim + the sign &
- From: Larry Serflaten
- Re: Dim + the sign &
- From: Mike Williams
- Re: Dim + the sign &
- From: Jan Hyde (VB MVP)
- Dim + the sign &
- Prev by Date: Re: Versions
- Next by Date: Re: Sending a Critical type message to all logged in users
- Previous by thread: Re: Dim + the sign &
- Next by thread: Re: Dim + the sign &
- Index(es):
Relevant Pages
|