If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Wishlist - Things I'd like to see REMOVED from VB

There's been a lot that has been added to the VB language over the last couple of years. And that's great, but I think maybe it's time that a few thing simply went away. Here's my list of things I'd like to see removed from the language (in no particular order).

Default form Instances - Is this really necessary? I know it was removed early on, but then put right back in the next version. If I remember right, it was to help ease the transition for VB6ers to .NET. Here we are nearly 10 years later, and I still see plenty of questions of "why doesn't this work" because people are using the default instance when they shouldn't be.

GoTo - Why is THIS still around? I realize that it's been a part of the BASIC language since Day 1. If we can take out line continuation (which I'm sure was no small undertaking), surely we can get rid of a couple extraneous commands that for the most part most of us avoid and recommend to others to avoid.

On Error GoTo & On Error Resume Next - GoTo previous comment. (as a side note - On Error Resume Next, one of the worst things to happen)

I thought I had more... but that's all I can think of at the moment. If anyone else wants to add to the list, be my guest. If anyone wants to respond or argue for/against anything in my list, be my guest.

Re: Wishlist - Things I'd like to see REMOVED from VB

Hi TechGnome,

Once something goes into a language we cannot just simply remove it without the potential of breaking tons of applications. We can depreciate things but not remove. This is not just for Visual Basic but for any language. Yes these language constructs are there to make it easier for the traditional VB developer to move to the .NET platform but that doesn't mean that you have to use them.

What would be better would be to depreciate certian things (like On Error GoTo) and give warnings in the IDE when folks used these older constructs.

Re: Wishlist - Things I'd like to see REMOVED from VB

Oh I get that, and understand. That's why it was a wish list. It's not so much that I have a problem with it, but rather when I see other struggling with it needlessly because they don't fully understand what they are doing. Sadly, I've seen cases where teachers are still using these archaic constructs in their teachings.

Re: Wishlist - Things I'd like to see REMOVED from VB

Originally Posted by TechGnome

Sadly, I've seen cases where teachers are still using these archaic constructs in their teachings.

-tg

That is so true, and sad! I'm a teacher myself, and trying to convince "more experienced" users ( more experienced with VB 6 ) that On Error is a huge mistake takes forever, and sadly mostly falls onto deaf ears. I guess most the ex - VB6 - ers are either just being stubborn / blind to the fact that On Error staments do more harm than good.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.