Re: Wish I was using .net
- From: "Michael D. Ober" <obermd.@.alum.mit.edu.nospam>
- Date: Mon, 20 Feb 2006 08:31:09 -0700
"Michael C" <nospam@xxxxxxxxxx> wrote in message
news:OIytzqcNGHA.208@xxxxxxxxxxxxxxxxxxxxxxx
"Lance Wynn" <LanceWynn@xxxxxxxxxxxxxxxx> wrote in messageIn
news:%23Pms0hcNGHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
Oh,
Then I have to agree with MikeD, that's just the way the language is.
catching.NET, or any language for that matter you'll find a number of runtime
errors
that for whatever reason the compiler won't catch. It has nothing to do
with the language, or the compiler.
But VB is a leaky sieve in this regard missing a *lot* of errors that it
should have caught. You want the language to do as much as possible
every error it can, leaving the less obvious stuff up to the programmer or
tester.
I concur. I have worked with weakly typed languages and strongly typed
languages and definitely prefer strongly typed languages. Having the
compiler catch as many errors as possible is far better than catching them
at runtime. Remember it's always cheaper (and less embarrasing) to fix a
problem before release than after release.
Dotnet on the other hand is very tight and the one and only situation Ican
think of is a foreach statement, which doesn't check the type untilruntime.
VB 2005 catches type casting errors in for each ... next statements.
if
There are a number of instances in VB
where you wouldn't want the compiler to raise an error at compile time
anythere were a potential type mismatch.
No, you never want this. A language should always give you an error for
implicit type conversion that could cause an error or loss of data, and
force you to explicitly do a conversion.
Michael
I just wish MS hadn't thrown out the baby with the bathwater when
modernizing VB 6. As may people in this NG have correctly pointed out, MS
made a lot of changes to the VB language that break a lot of existing code.
I suspect many of these changes were unnecessary, despite the protestations
of the MS VB development team.
Mike Ober.
.
- Follow-Ups:
- Re: Wish I was using .net
- From: Ken Halter
- Re: Wish I was using .net
- References:
- Wish I was using .net
- From: Michael C
- Re: Wish I was using .net
- From: MikeD
- Re: Wish I was using .net
- From: Michael C
- Re: Wish I was using .net
- From: Lance Wynn
- Re: Wish I was using .net
- From: Michael C
- Re: Wish I was using .net
- From: Lance Wynn
- Re: Wish I was using .net
- From: Michael C
- Wish I was using .net
- Prev by Date: Re: Running very old Fortran code in VB
- Next by Date: Re: Problem color; what i'm i doing wrong ?
- Previous by thread: Re: Wish I was using .net
- Next by thread: Re: Wish I was using .net
- Index(es):
Relevant Pages
|