Dear Richard,
I think I was unable to make myself clear.
What I meant was that " By Default " the language should be as rigid as C# -
atleast at compiler level.
And you might be allowed to write as crappy code as possible to make it
flexible and to support VB6 code which I suppose is what you prefer under
the flag of FLEXIBILITY.
Have you seen the writing on the wall, it clearly says that Microsoft is
trying to promote VB as an inferior language as compared to C# despite the
reality.
Why is it so that the recent Data Structures Articles on MSDN are made using
C# ONLY ???
Why most of the Controls and Class Libraries are written in C# ???
Why in the casestudies section of Microsoft site, its hard to find a
solution in VB.NET ???
Thats what i was referring to - VB is made to look like a language that
makes toys.
Everyone knows that the only diefference between VB and C# is that of syntax
and unsafe code.
Even then this biased promotion is both frustating and uncomprehendable.
I am really sorry in advance but I beleive your first and last comments are
a direct attack on my credibility
and competence ....
Well I am not aware if you have ever worked on any large project comprising
of large number of developers and modules.
In such scenarios, you need a little help from the compiler - which is
priceless when you are debugging.
What are compiler warnings - they are clues that there might be something
wrong.
Every one can make a mistake. That mistake can result in frustation and time
spent debugging the code.
Some of these mistakes can easily be tackled by compiler warnings.
In C++ , its is a recommended practice that you write your code to promote
compile time errors rather than runtime.
And I hope you wont deny the fact that Runtime Errors are far more difficult
to catch and fix rather than simple Compile Time Errors.
And I hope you understand that my idea of TOY was by no means based on what
I develop with VB.NET , rather what is promoted.
Thank You for your comments anyways.
rawCoder.
"Richard Myers" <ri*********************@basd.co.nz> wrote in message
news:ec**************@TK2MSFTNGP09.phx.gbl...
In Visual Basic .NET , your function definition might requirre you to return a value but (accidently/intentionally) you dont put any 'return value' in the function.
In this case VB Compiler does not generate any warning.
Is there any way to make the compiler generate this and other obvious
warnings, is there any switch, or still VB.NET development team
assumes that the VB developers use the language as a toy language.
Surely it becomes very obvious when your function returns "Nothing". You
do "test" your code after you write it... right?
And doesnt one think that the Warning and Error generated by VB
Compiler should match that of C#.
Why?
And when are we gonna get rid of 'Option Strict Off' and make 'Option Strict On' a necessity rather than an option - shouldnt this be default.
Microsoft haven't made it a neccessity so that all of those applications
written in non OOP VB will have an easy upgrade path. Microsoft believe
the developer is the best person to decide what does and doesn't work for them
and their individual.... just because you dont like it, doesn;t mean it's
not for everybody. Your essentially asking "Why is the langauge so
flexible?" which is a weird complaint.
Will VB.NET , despite its powers matching to that of C# , will always remain as a toy language ??????
Well now that depends on whose is using it?
The language and toolset that accompanies it are incredibly powerful. If
all you've managed to build with it are "toys" then i would suggest you
undertake some further training.
hth
Richard