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.

VB Shorthand?

Hello,

Thank you for visiting the forums here. Perhaps, even after the week you might pop in occasionally?

I use Visual Basic 2005 at work a lot because it is verbose and my boss can read and have a basic understanding of what I am doing. However, one of the things I really like about C# is the brevity. For example:

Code:

Int? x = null;
Int y = 30;
Int z = x ?? y;

Is there any plans for this kind of ability to be added to Visual Basic? Perhaps, the option to write out the code verbosely, or use a "short hand" way?

Re: VB Shorthand?

I kind of like short operators, but I do appreciate the readability of VB, so I'd have to say that I'm pretty much with Phill64 on this one. After all, in C you can write some amazing lines, but reading them is such a CHORE!!

Re: VB Shorthand?

I am saying that I would like the option. In C# you don't have to use the "short hand", but it is available. It is an option. Why not make that an option in VB?

This would be beneficial, to me anyway, when I don't need my boss to understand what I am writing. My boss can't read C# either way, but if this was available in VB, then I could choose when I want to code verbosely, and when I don't. Speed vs. readability. Seems logical to me.

Re: VB Shorthand?

Good to know you like the short operators.

FWIW, we hear a bit more feedback to the other side that users like the readability of the operators and keywords we currently have with VB. Plus, we have to think about the long history we've had with the language.