Re: Option Explicit
- From: "BruceM" <bamoob@xxxxxxxxxxxxxxxx>
- Date: Wed, 20 Jun 2007 09:55:47 -0400
Everybody makes typographical errors. That is what people mean in this
thread by "garbage". It is not a reference to the quality of your code. If
you use a variable 50 times in your code, and misspell it once, in that one
instance it will be treated as a new variable if you do not require variable
declaration. The code may run, but you won't get the expected result, and
will be left to sort through your code line by line to figure out why. If
you require variable declaration, when you compile the code you will be
asked about the undeclared (i.e. misspelled) variable. This is my choice.
If you wish to make another choice (because you have always done it that
way, or because you feel the need to rebel against common methods, or
whatever), go for it.
However, leave the "totalitarianism" (if that's what you meant by
"tolitarism") stuff out of the discussion. You can take your incoherent
rants about Google somewhere else, too. Everybody who has replied uses
Option Explicit, and has told you why. Take the advice or leave it, but you
can get off of your persecution high horse any time now.
"Warrio" <warrio@xxxxxxxxxxx> wrote in message
news:4679205a$0$3782$5402220f@xxxxxxxxxxxxxxxxxx
Common sense can differ depending on what you want to do and on your
reasons... action = reaction (1st Newton low)
It's rather called tolitarism (only one opinion is right)
What I'm trying to say that I'm shocked to see people saying that there is
only one option that is right.
and I'm more disappointed to see an MVP treating someone's code of
garbage!!
That's really great
PS: Google is also going out of law by neglecting the right to the private
life... but they do it, and thanks to them to try to change the habits
based on old rules.
if you want to follow a rule, at least try to know why they were made!
Cheers!
"Albert D. Kallal" <PleaseNOOOsPAMmkallal@xxxxxxx> a écrit dans le message
de news: ughc73ysHHA.4796@xxxxxxxxxxxxxxxxxxxxxxx
"David W. Fenton" <XXXusenet@xxxxxxxxxxxxxxxxxxx> wrote in message
You should still use Option Explicit so you don't write garbage
code.
--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Yup...."garbage code" sums it up!!!
For me, it never been a debate...the *first* change in setting is to
ensure option explicit...
It much like putting a seat belt on...it not because it is a local
by-law, it because is common sense.....
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@xxxxxxx
.
- Follow-Ups:
- Re: Option Explicit
- From: Warrio
- Re: Option Explicit
- From: Warrio
- Re: Option Explicit
- References:
- Option Explicit
- From: Warrio
- Re: Option Explicit
- From: Marshall Barton
- Re: Option Explicit
- From: Warrio
- Re: Option Explicit
- From: Rick Brandt
- Re: Option Explicit
- From: Warrio
- Re: Option Explicit
- From: Douglas J. Steele
- Re: Option Explicit
- From: Warrio
- Re: Option Explicit
- From: Albert D. Kallal
- Re: Option Explicit
- From: David W. Fenton
- Re: Option Explicit
- From: Albert D. Kallal
- Re: Option Explicit
- From: Warrio
- Option Explicit
- Prev by Date: Re: change null to a value of 0
- Next by Date: Re: report from check boxes
- Previous by thread: Re: Option Explicit
- Next by thread: Re: Option Explicit
- Index(es):
Relevant Pages
|